Making services DISABLED from command line

  • Thread starter Thread starter BertieBigBollox
  • Start date Start date
B

BertieBigBollox

whats the easiest way to do this?

I know you can go into GUI and do it but what about from the command
line. I know NET STP <servicename> can be used to stop it but what
about setting it to DISABLED startup?
 
sc.exe comes with XP Pro.

For sc.exe help...
Paste the following line into Start | Run and click OK..

hh ntcmds.chm::/sc.htm

See disabled under sc config.

Type: sc config /? in a command prompt

sc config [service name] start= disabled

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
In said:
Use sc.exe. Sc.exe is a Resource Kit utility.

Also, free third party
=========== Scrn Cap =================
PsService v2.20 - Service information and configuration utility
Copyright (C) 2001-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

Usage: psservice [\\Computer [-u Username [-p Password]]] setconfig
<svc> <start-type>
Sets the start type of the specified service where start-type
is one of auto, demand and disabled.
======================================
 
Back
Top