Jump to content
NotebookTalk

need help on making a script to set services to manual.


raptorddd

Recommended Posts

not sure where to start...

i want to have a script that would set useless services to manual.  one script that i used was chris titus essential tweaks. in the debloater. but it also disables some options or features i want..

so am wondering if can be done that i could use that part of the script only. i tried myself ( i have 0 knowledge but tought i could copy only that part and just create a new script) not sure if it needs more code to work. tried lit script but fails error access is denied.

so if it can be done and someone know how if you can please help..

thanks

dell precision m4600

i7 2760QM

8GB ram

MX500 crucial SSD 500GB.

win 10 21H2

Link to comment
Share on other sites

Save the following in a .ps1 file for powershell and run it, replace with the services you wish to disable.

#requires -RunAsAdministrator

# comma seperated list of service names to set to manual
$servicestodisable = "Fax","GamingServicesNet"

# loop through each service and set to manual and stop the service.
Foreach ($service in $servicestodisable) {
    $s = Get-service $service 
    $s | Set-service -StartupType Manual
    $s | stop-service
}

 

  • Thumb Up 1
Link to comment
Share on other sites

4 hours ago, ratchetnclank said:

Save the following in a .ps1 file for powershell and run it, replace with the services you wish to disable.

#requires -RunAsAdministrator

# comma seperated list of service names to set to manual
$servicestodisable = "Fax","GamingServicesNet"

# loop through each service and set to manual and stop the service.
Foreach ($service in $servicestodisable) {
    $s = Get-service $service 
    $s | Set-service -StartupType Manual
    $s | stop-service
}

 

thanks so i just add services here..    

"Fax","GamingServicesNet"

or here    

$s = Get-service $service  on this last part $printspooler 

dell precision m4600

i7 2760QM

8GB ram

MX500 crucial SSD 500GB.

win 10 21H2

Link to comment
Share on other sites

8 hours ago, raptorddd said:

thanks so i just add services here..    

"Fax","GamingServicesNet"

or here    

$s = Get-service $service  on this last part $printspooler 

In the line with fax. Replace those with any services you want disabled.

  • Thumb Up 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use