In most situations, when you use WMI, you are performing some sort of query. Even when you are going to set a particular property, you still need to execute a query to return a data set that enables you to perform the configuration. (A data set includes the data that comes back to you as the result of a query—that is, it is a set of data.) In this section, you will examine use of the Get-WmiObject cmdlet to query WMI.
Using the Get-WmiObject cmdlet to query a specific WMI class
Connect to WMI by using the Get-WmiObject cmdlet.
Specify a valid WMI class name to query.
Specify a value for the namespace; omit the -namespace parameter to use the default root\cimv2 namespace.
Specify a value for the -computername parameter; omit the ...