Cmd line services disable

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.
 
H

Herb Martin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top