How can I enable a disabled service?
I want to test enabling a disabled service through a command line and not through a GPO. Problem is that everything that I search for shows how to enable that through GPO. Can anyone assist?
December 5th, 2009 1:43am

I would recommend that you use other technet forums for non SCCM related questions.Using the SC command or a VB script can help you An example VB script is belowstrComputer = "."Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colServiceList = objWMIService.ExecQuery _("Select * from Win32_Service where Name = 'YourServiceNameHere'")For Each objService in colServiceListobjService.ChangeStartMode("Automatic")Wscript.Sleep 5000errReturnCode = objService.StartService()NextReference :http://www.msfn.org/board/lofiversion/index.php/t46610.html
Free Windows Admin Tool Kit Click here and download it now
December 5th, 2009 3:28am

Just use the following command linesc config servicename start= autoNote the space behind the = sign which is required."Everyone is an expert at something" Kim Oppalfens Configmgr expert for lack of any other expertise. http://www.scug.be/blogs/sccm
December 5th, 2009 10:49am

Just use the following command linesc config servicename start= autoNote the space behind the = sign which is required. "Everyone is an expert at something" Kim Oppalfens Configmgr expert for lack of any other expertise. http://www.scug.be/blogs/sccm I also was playing with that and used "sc config servicename start= disabled" to redisable it.Thank you. This is going to be huge for our software updates and we were tasked with figuring this out by today.
Free Windows Admin Tool Kit Click here and download it now
December 7th, 2009 6:23pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics