To | Do This |
---|---|
Find the default WMI namespace on a computer | Use the advanced tab from the WMI Control Properties dialog box |
Browse WMI classes on a computer | Use the Get-WmiObject cmdlet with the list argument |
Make a connection into WMI | Use the Get-WmiObject cmdlet in your script |
Use a shortcut name for the local computer | Use a dot (.) and assign it to the variable holding the computer name in the script |
Find detailed information about all WMI classes on a computer | Use the Platform SDK: http://msdn2.microsoft.com/en-us/library/aa394582.aspx |
Find the default WMI namespace on a computer | Use the advanced Tab from the WMI Control Properties dialog box |
List all the namespaces on a computer | Query for a class named __NameSpace |
List all providers installed in a particular namespace | Query for a class named __Win32Provider |
List all the classes in a particular namespace on a computer | Use the list argument for the Get-WmiObject cmdlet |
Quickly retrieve similarly named properties from a class | Use the Format-List cmdlet and supply a wild card asterisk (*) for the property argument |