Change Service Properties "Startup Type" with a script?

Is there a batch command or WMI script I can run to change the Startup Type on the properties of a service (from Automatic to Disabled, for example)?

Thanks.
gateguardAsked:
Who is Participating?
 
theruckCommented:
i am sorry it looks that windows 2000 is not supported. it works on winxp only i think. maybe you could try to copy the sc.exe from XP to 2000 if it works but it would be license braking i think :)
0
 
theruckCommented:
it just works by copying. so you can do a cmd script which will copy the file to the destination PC from a network share then do the command then delete it so your mission will be acomplished and no black software on the target machines will be installed
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
gateguardAuthor Commented:
Actually the server I want to run this on is 2003.
0
 
gateguardAuthor Commented:
I realize I posted this question in the wrong place.  But I'm looking at your links now.
0
 
theruckCommented:
so then it is simple
0
 
gateguardAuthor Commented:
It worked perfectly.  I now have the script I need.  Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.