WMI and CIM
suggest changeRemarks
CIM vs WMI
Windows PowerShell 3.0 added the CIM cmdlets. Windows PowerShell 1.0 and 2.0 had only the WMI cmdlets. PowerShell 6 and later remove the WMI cmdlets. Use CIM. Both families talk to Windows management data. They are not available on non-Windows PowerShell.
| CIM cmdlet | WMI cmdlet | What it does |
|---|---|---|
Get-CimInstance |
Get-WmiObject |
Gets instances of a class |
Invoke-CimMethod |
Invoke-WmiMethod |
Invokes a method |
Register-CimIndicationEvent |
Register-WmiEvent |
Registers an event |
Remove-CimInstance |
Remove-WmiObject |
Removes an instance |
Set-CimInstance |
Set-WmiInstance |
Updates an instance |
Get-CimAssociatedInstance |
N/A | Gets associated instances |
Get-CimClass |
Get-WmiObject -List |
Lists classes |
New-CimInstance |
N/A | Creates an instance |
Get-CimSession |
N/A | Lists CIM sessions |
New-CimSession |
N/A | Creates a CIM session |
New-CimSessionOption |
N/A | Session options for New-CimSession, such as protocol and encoding |
Remove-CimSession |
N/A | Removes a CIM session |
Additional resources
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents