\
Tips and Tricks
Tools
WMI (Windows Management Instrumentation)
Microsoft WMI Object Queries
ListProperties.vbs
This shows how to list all methods of a particular class (in this example "Win32_QuickFixEngineering"):
strNamespace = "\root\CIMV2"
strClassName = "Win32_QuickFixEngineering"
Set objWMIService = GetObject("winmgmts:\\." & strNameSpace)
Set objWMIClass = objWMIService.Get(strClassName)
For Each objProperty In objWMIClass.Properties_
WScript.Echo objProperty.Name
Next
Sample Output (sorted by me) |
Caption
CSName
Description
FixComments
HotFixID
InstallDate
InstalledBy
InstalledOn
Name
ServicePackInEffect
Status