Script to Change the ITSM Service from Automatic Delayed start to Automatic
Note: Run as System User
#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name
import _winreg
try:
handle = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,r"SYSTEM\CurrentControlSet\services\ITSMService",0,_winreg.KEY_ALL_ACCESS)
_winreg.DeleteValue(handle, 'DelayedAutostart')
_winreg.SetValueEx(handle,'Start',0,_winreg.REG_DWORD,2)
print "ITSMService Successfully changed from Automatic Delayed Start to Automatic"
print 'Please Restart the system to apply changes ....'
except:
print "No Such Registry Key. Check the path"
Comments