Making services DISABLED from command line

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?
 
W

Wesley Vogel

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
 
M

Mark V

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

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