Leaked source code of windows server 2003
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

  1. 'This script displays all currently stopped services
  2. WScript.Echo "The following service are currently stopped:"
  3. WScript.Echo "==========================================="
  4. WScript.Echo ""
  5. for each Service in _
  6. GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _
  7. ("Select * from win32_service where State='Stopped'")
  8. WScript.Echo " ", Service.DisplayName, "[", Service.Name, "]"
  9. next