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.

29 lines
848 B

  1. //***************************************************************************
  2. //This script tests the browsing of schema
  3. //***************************************************************************
  4. var Process = GetObject("winmgmts:Win32_Process");
  5. WScript.Echo ("Class name is", Process.Path_.Class);
  6. //Get the properties
  7. WScript.Echo ("\nProperties:\n");
  8. for (var e = new Enumerator(Process.Properties_); !e.atEnd(); e.moveNext ())
  9. {
  10. WScript.Echo (" " + e.item().Name);
  11. }
  12. //Get the qualifiers
  13. WScript.Echo ("\nQualifiers:\n");
  14. for (var e = new Enumerator(Process.Qualifiers_); !e.atEnd(); e.moveNext ())
  15. {
  16. WScript.Echo (" " + e.item().Name);
  17. }
  18. //Get the methods
  19. WScript.Echo ("\nMethods:\n");
  20. for (var e = new Enumerator(Process.Methods_); !e.atEnd(); e.moveNext ())
  21. {
  22. WScript.Echo (" " + e.item().Name);
  23. }