\Tips and TricksToolsWMI (Windows Management Instrumentation)Microsoft WMI Object QueriesListMethods.vbs
This shows how to list all methods of a particular class (in this example "WIN32_SHARE"):
strNamespace = "\root\CIMV2"
strClassName = "Win32_Share"
Set objWMIService = GetObject("winmgmts:\\." & strNameSpace)
Set objWMIClass = objWMIService.Get(strClassName)
For Each objMethod In objWMIClass.Methods_
WScript.Echo objMethod.Name
Next
Sample Output (sorted by me) |
Create
Delete
GetAccessMask
SetShareInfo