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.

33 lines
738 B

  1. var locator = WScript.CreateObject ("WbemScripting.SWbemLocator");
  2. var services = locator.ConnectServer (".", "root/cimv2");
  3. var classa = services.Get ("Win32_baseservice");
  4. var p = classa.Properties_.item("StartMode");
  5. WScript.Echo (p.Name, p.Origin, p.IsLocal);
  6. var q = p.Qualifiers_.item("ValueMap");
  7. WScript.Echo (q.Name, q.IsLocal);
  8. var val = new VBArray (q.Value).toArray ();
  9. for (x=0; x < val.length; x++) {
  10. WScript.Echo (val[x]);
  11. }
  12. // var eq = new Enumerator (p.Qualifiers_);
  13. // WScript.Echo ("\nQualifiers\n");
  14. // for (;!eq.atEnd();eq.moveNext())
  15. // {
  16. // q = eq.item ();
  17. // var arrayVal = new VBArray (q);
  18. //
  19. // if (arrayVal == null)
  20. // WScript.Echo (q.Name, "=", q);
  21. // }
  22. //}