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.

30 lines
769 B

  1. '***************************************************************************
  2. 'This script tests the browsing of schema
  3. '***************************************************************************
  4. On Error Resume Next
  5. Set Process = GetObject("winmgmts:Win32_Process")
  6. WScript.Echo "Class name is", Process.Path_.Class
  7. 'Get the properties
  8. WScript.Echo "Properties:"
  9. for each Property in Process.Properties_
  10. WScript.Echo Property.Name
  11. next
  12. 'Get the qualifiers
  13. WScript.Echo "Qualifiers:"
  14. for each Qualifier in Process.Qualifiers_
  15. WScript.Echo Qualifier.Name
  16. next
  17. 'Get the methods
  18. WScript.Echo "Methods:"
  19. for each Method in Process.Methods_
  20. WScript.Echo Method.Name
  21. next
  22. if Err <> 0 Then
  23. WScript.Echo Err.Description
  24. Err.Clear
  25. End if