Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Enumerating Resultant Set of Policy System ServicesContent of Enumerating Resultant Set of Policy System Services.vbsMD5 Hash: 5388F9E5CDED34C79EF06701DC66FE24 |
||
' Description: Returns information about the service settings (including startup mode and access permissions) assigned to a computer by using Group Policy.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\rsop\computer") Set colItems = objWMIService.ExecQuery("Select * from RSOP_SystemService") For Each objItem in colItems Wscript.Echo "Service: " & objItem.Service Wscript.Echo "Precedence: " & objItem.Precedence Wscript.Echo "SDDL String: " & objItem.SDDLString Wscript.Echo "Startup Mode: " & objItem.StartupMode Wscript.Echo Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |