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.
 
 
 
 
 
 

31 lines
769 B

'***************************************************************************
'This script tests the browsing of schema
'***************************************************************************
On Error Resume Next
Set Process = GetObject("winmgmts:Win32_Process")
WScript.Echo "Class name is", Process.Path_.Class
'Get the properties
WScript.Echo "Properties:"
for each Property in Process.Properties_
WScript.Echo Property.Name
next
'Get the qualifiers
WScript.Echo "Qualifiers:"
for each Qualifier in Process.Qualifiers_
WScript.Echo Qualifier.Name
next
'Get the methods
WScript.Echo "Methods:"
for each Method in Process.Methods_
WScript.Echo Method.Name
next
if Err <> 0 Then
WScript.Echo Err.Description
Err.Clear
End if