Getting Help on WMI Methods

by Jul 30, 2010

Have you ever wanted to get a list of all WMI methods present inside a specific WMI class – plus a meaningful description and a list of all the supported return values? Here is how:

$class = [wmiclass]"Win32_NetworkAdapterConfiguration"
$class.psbase.Options.UseAmendedQualifiers = $true
$class.psbase.methods | % { $rv = 1 | Select-Object Name, Help; $rv.Name = $_.Name$ = ($_.Qualifiers["Description"]).Value$rv } | format-table -AutoSize -Wrap

Twitter This Tip! ReTweet this Tip!