The WMI cmdlets have been superseded by the CIM cmdlets.
The WMI commands are:
- Get-WmiObject
- Invoke-WmiMethod
- Register-WmiEvent
- Remove-WmiObject
- Set-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"...