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 colItemsWscript.Echo "Service: " & objItem.ServiceWscript.Echo "Precedence: " & objItem.PrecedenceWscript.Echo "SDDL String: " & objItem.SDDLStringWscript.Echo "Startup Mode: " & objItem.StartupModeWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file