Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Service Start OptionsContent of Modify Service Start Options.vbsMD5 Hash: 14AE11144BAFFC1663C893932729418C |
||
' Description: Disables all services configured as manual start. Among other things, this prevents Power Users from being able to start these services.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colServiceList = objWMIService.ExecQuery _ ("Select * from Win32_Service where StartMode = 'Manual'") For Each objService in colServiceList errReturnCode = objService.Change( , , , , "Disabled") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |