The WMI cmdlets
Note
The WMI cmdlets have been superseded by the CIM cmdlets.
The WMI commands are:
Get-WmiObjectInvoke-WmiMethodRegister-WmiEventRemove-WmiObjectSet-WmiInstance
In addition to the commands, three type accelerators are available:
[Wmi]:System.Management.ManagementObject[WmiClass]:System.Management.ManagementClass[WmiSearcher]:System.Management.ManagementObjectSearcher
Each of the WMI cmdlets uses the ComputerName parameter to aim the operation at another computer. The WMI cmdlets also support a credential parameter and other authentication options affecting the authentication method.
Both the Wmi and WmiClass type accelerator can be written to use a remote computer by including the computer name. For example:
[Wmi]"\\RemoteComputer\root\cimv2:Win32_Process.Handle=$PID"
[WmiClass]"\\RemoteComputer\root\cimv2:Win32_Process" Getting instances
The Get-WmiObject command is used to execute queries for instances of WMI objects. For example:
Get-WmiObject -Class Win32_ComputerSystem The...