[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

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.
0
gateguard
Asked:
gateguard
  • 4
  • 3
1 Solution
 
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now