Jump to content

batch file to disabe a service


Recommended Posts


Posted

You can use this :

sc stop "service"
sc config "service" start= disabled

Where service is the name of the service you want to stop (ie: "Automatic Updates").

Note that you must have the quotes, and that there is a space before disabled, that must be there. You can get the service names from the services control panel, enter them exactly as they are listed.

SP

Posted
You can use this :

sc stop "service"
sc config "service" start= disabled

Where service is the name of the service you want to stop (ie: "Automatic Updates").

Note that you must have the quotes, and that there is a space before disabled, that must be there. You can get the service names from the services control panel, enter them exactly as they are listed.

SP

Thats helpful thanks! :yes:

Posted

Glad to be of .. service :P

Yes, you can run sc multiple times in a batch file.

run sc without any cmmand line to get a list of possible options - there are a lot!

SP

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...