Disabling services from the command line

  • Thread starter BertieBigBollox
  • Start date
B

BertieBigBollox

Is there a way to do this?

I know you can start/stop services using the NET command but is there
any way to set a services startup type to be disabled from the command
line.

I'd like to write a batch script that will disable a list of services
so that I can run it on other machines to save doing it manually each
time.
 
P

Pegasus \(MVP\)

Is there a way to do this?

I know you can start/stop services using the NET command but is there
any way to set a services startup type to be disabled from the command
line.

I'd like to write a batch script that will disable a list of services
so that I can run it on other machines to save doing it manually each
time.

sc config start=disabled should probably do it. sc.exe was
included with the Technical Resource Kit. AFAIK, it now
comes with WinXP.
 
J

John Wunderlich

(e-mail address removed) wrote in
Is there a way to do this?

I know you can start/stop services using the NET command but is
there any way to set a services startup type to be disabled from
the command line.

I'd like to write a batch script that will disable a list of
services so that I can run it on other machines to save doing it
manually each time.

The program "PsService.exe", part of the freeware PsTools Suite from
Sysinternals will do this for you. It can change other machines over
the network from a single computer.

<http://www.sysinternals.com/Utilities/PsTools.html>

HTH,
John
 

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