获得WMI类的成员

strComputer = "."

strNameSpace = "root\cimv2"    

strClass = "__InstanceCreationEvent"    

Set objClass = GetObject( "winmgmts:\\" & strComputer & "\" & strNameSpace & ":" & strClass)    

WScript.Echo strClass & " Class Properties"

WScript.Echo "------------------------------"    

For Each objClassProperty In objClass.Properties_    

WScript.Echo objClassProperty.Name    
Next    

你可能感兴趣的:(职场,脚本,休闲)