Cmd line services disable

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

Guest

Hi

Can anyone advise on how to disable a service on a W2K server from the
command line, stopping it running immediately and also disabling it on a
subsequent server reboot?

Thanks in advance.
 
Rod said:
Hi

Can anyone advise on how to disable a service on a W2K server from the
command line, stopping it running immediately and also disabling it on a
subsequent server reboot?

This will stop a service...

net stop serviceName

....but it will not change the behavior for the next boot.

sc config serviceName start=demand

OR

sc config serviceName start=disabled

Demand is equivalent to what is normally called "manual" and other
than being 'different' from normal usage is actually a better term since
OTHER services can start "demand" services; they do not require
manual [human] intervention.

Also, if you are running older systems that don't have sc.exe you might
try the psXXXX utilities, including psservice (Free) from SysInternals.com
 
Back
Top