Enable a service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to enable or disable a service with a script? I know how to
start, stop, create and delelte, but I can find nothing about how to enable
it.

Ann
 
Ann,

SC (Sc.exe):
Viewing, stopping, starting, pausing, and disabling services, or changing service startup types for diagnostic purposes from the command-line.

Type sc /? in Command Prompt.

To start, stop a service - "NET" command:
http://www.microsoft.com/windowsxp/...dowsxp/home/using/productdoc/en/net_start.asp

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Is there a way to enable or disable a service with a script? I know how to
start, stop, create and delelte, but I can find nothing about how to enable
it.

Ann
 
Back
Top