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
29 lines
848 B
//***************************************************************************
|
|
//This script tests the browsing of schema
|
|
//***************************************************************************
|
|
var Process = GetObject("winmgmts:Win32_Process");
|
|
|
|
WScript.Echo ("Class name is", Process.Path_.Class);
|
|
|
|
//Get the properties
|
|
WScript.Echo ("\nProperties:\n");
|
|
|
|
for (var e = new Enumerator(Process.Properties_); !e.atEnd(); e.moveNext ())
|
|
{
|
|
WScript.Echo (" " + e.item().Name);
|
|
}
|
|
|
|
//Get the qualifiers
|
|
WScript.Echo ("\nQualifiers:\n");
|
|
for (var e = new Enumerator(Process.Qualifiers_); !e.atEnd(); e.moveNext ())
|
|
{
|
|
WScript.Echo (" " + e.item().Name);
|
|
}
|
|
|
|
//Get the methods
|
|
WScript.Echo ("\nMethods:\n");
|
|
for (var e = new Enumerator(Process.Methods_); !e.atEnd(); e.moveNext ())
|
|
{
|
|
WScript.Echo (" " + e.item().Name);
|
|
}
|
|
|