Computing.Net > Forums > Programming > Services Script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Services Script

Reply to Message Icon

Name: sk8rrr
Date: June 30, 2009 at 11:14:56 Pacific
OS: Windows Server 2003
Subcategory: Batch
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: June 30, 2009 at 13:13:56 Pacific
Reply:

sc /?


0

Response Number 2
Name: sk8rrr
Date: July 6, 2009 at 18:40:07 Pacific
Reply:

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.


0

Response Number 3
Name: Valerie (by Garibaldi)
Date: July 6, 2009 at 19:54:48 Pacific

Response Number 4
Name: sk8rrr
Date: July 6, 2009 at 20:09:39 Pacific
Reply:

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


0

Response Number 5
Name: brockey01
Date: July 6, 2009 at 20:15:22 Pacific
Reply:

try this


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

that should work. you need quotes


0

Related Posts

See More



Response Number 6
Name: Razor2.3
Date: July 7, 2009 at 05:38:55 Pacific
Reply:

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"


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Services Script

Script to monitor and Start service www.computing.net/answers/programming/script-to-monitor-and-start-service/17869.html

Remotely Start Windows Service www.computing.net/answers/programming/remotely-start-windows-service/13998.html

Simple icq script... www.computing.net/answers/programming/simple-icq-script/8165.html