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

var locator = WScript.CreateObject ("WbemScripting.SWbemLocator");
var services = locator.ConnectServer (".", "root/cimv2");
var classa = services.Get ("Win32_baseservice");
var p = classa.Properties_.item("StartMode");
WScript.Echo (p.Name, p.Origin, p.IsLocal);
var q = p.Qualifiers_.item("ValueMap");
WScript.Echo (q.Name, q.IsLocal);
var val = new VBArray (q.Value).toArray ();
for (x=0; x < val.length; x++) {
WScript.Echo (val[x]);
}
// var eq = new Enumerator (p.Qualifiers_);
// WScript.Echo ("\nQualifiers\n");
// for (;!eq.atEnd();eq.moveNext())
// {
// q = eq.item ();
// var arrayVal = new VBArray (q);
//
// if (arrayVal == null)
// WScript.Echo (q.Name, "=", q);
// }
//}