PrimalScript includes a convenient WMI Wizard that writes short Windows Management Instrumentation scripts for you.
Launch the WMI Wizard by selecting the Tools ribbon > Wizards section > WMI Wizard:
The Wizard can query most available WMI classes. By default, it looks only at classes beginning with "Win32" in the root\cimv2 namespace of your local computer.
The Wizard can produce scripts in either VBScript or JScript, although it defaults to the language currently in use if you open it while a VBScript or JScript file is open and active.
To query the WMI namespaces on another computer
1.Specify that computer's name in place of "." and, if necessary, provide proper credentials for the remote computer.
2.To display classes other than those in the \root\cimv2 namespace, type the new namespace (such as \root\MicrosoftIISv2).
3.Finally, uncheck the Show only WIN32 classes checkbox to display classes whose names do not begin with "Win32". After specifying these options, click Refresh to refresh the class list.
4.Select any class to see its sample script and click Insert to insert the script into your current file or click Copy to copy the WMI script to the Clipboard.
See also:
Windows Script Host TrustPolicy Settings