bmanice Posted July 27, 2007 Share Posted July 27, 2007 Is there any way to create a file (i was thinking a batch) that would toggle my windows services? sometimes i like to have bare bones services running but sometimes i need the default xp set-up. . . thanks in advance. . . Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 27, 2007 Share Posted July 27, 2007 net start net stop net restart net pause Quote Link to comment Share on other sites More sharing options...
bmanice Posted July 27, 2007 Author Share Posted July 27, 2007 that doesnt allow you to start disabled services, maybe i should have worded my question different. I would like to enable & disableĀ (ie: Automatic, Disabled, Manual) thanks again... Quote Link to comment Share on other sites More sharing options...
remkow Posted July 27, 2007 Share Posted July 27, 2007 use this command to enable a service: sc config servicename start= auto More information: C:>sc config Modifies a service entry in the registry and Service Database. SYNTAX: sc <server> config [service name] <option1> <option2>... CONFIG OPTIONS: NOTE: The option name includes the equal sign. type= <own|share|interact|kernel|filesys|rec|adapt> start= <boot|system|auto|demand|disabled> error= <normal|severe|critical|ignore> binPath= <BinaryPathName> group= <LoadOrderGroup> tag= <yes|no> depend= <Dependencies(separated by / (forward slash))> obj= <AccountName|ObjectName> DisplayName= <display name> password= <password> Quote Link to comment Share on other sites More sharing options...
bmanice Posted July 27, 2007 Author Share Posted July 27, 2007 perfect Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.