Services Script

June 30, 2009 at 11:14:56
Specs: Windows Server 2003
Hey guys
Im trying to make a script to set a certain service to Automatic startup mode.

I know the usual Net start and Net stop command suggestions. but thats not goign to change the service from Manual startup to Automatic.

Any ideas?


See More: Services Script

Report •


#1
June 30, 2009 at 13:13:56
sc /?


Report •

#2
July 6, 2009 at 18:40:07
well that didnt really help but it showed some good info on services

-im looking to change the service from Manual Startup Type to Automatic startup type with a script.

I know how to start them and how to stop them.
But nowhere have i found the startup changes yet.


Report •

#3
Report •

Related Solutions

#4
July 6, 2009 at 20:09:39
thanks
really good sites and i think im getting the right command. but for some reason the Start up type is not changing

Ive got ::
net start "service"
sc config service start= auto

Ran that in a bat file and refreshed the services a few times with no luck so far


Report •

#5
July 6, 2009 at 20:15:22
try this


sc.exe config "service" start = auto
sc.exe start "service"

that should work. you need quotes


Report •

#6
July 7, 2009 at 05:38:55
sk8rrr: Ran that in a bat file and refreshed the services a few times with no luck so far
Make sure you're using the service name, and not the display name. If you don't know what the service name is, you can use sc and the display name to find out.
sc GetKeyName "whatever"


Report •


Ask Question