You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
423 B
12 lines
423 B
'This script displays all currently stopped services
|
|
|
|
WScript.Echo "The following service are currently stopped:"
|
|
WScript.Echo "==========================================="
|
|
WScript.Echo ""
|
|
|
|
for each Service in _
|
|
GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _
|
|
("Select * from win32_service where State='Stopped'")
|
|
WScript.Echo " ", Service.DisplayName, "[", Service.Name, "]"
|
|
next
|
|
|