TokenToSeaSkills Hub
中文 Console

Migrating Wmi To Cim

MicrosoftOfficial

Migrate removed WMI cmdlets and type accelerators to CIM in PowerShell 7.x: Get-WmiObject → Get-CimInstance, Invoke-WmiMethod → Invoke-CimMethod, Remove-WmiObject → Remove-CimInstance, Register-WmiEvent → Register-CimIndicationEvent, and [wmi]/[wmiclass]/[wmisearcher] accelerators. Use during the powershell-51-to-7-upgrade scenario for the WMI blocker bucket.

Install

npx skills add microsoft/upgrade-agent-plugins --skill migrating-wmi-to-cim