Powershell 5.1 To 7 Upgrade

Upgrade Windows PowerShell 5.1 scripts (.ps1/.psm1/.psd1) to cross-platform PowerShell 7.x. Use when the user asks to upgrade PowerShell scripts, move off Windows PowerShell 5.1, migrate WMI to CIM, remove PSSnapins, or make scripts run on PowerShell 7 / pwsh. Covers loose scripts that ship alongside a .NET repo — NOT binary cmdlet/PowerShell-SDK projects (those use the migrating-powershell-sdk lazy skill in the normal .NET version upgrade).

Microsoft Updated 195k repo stars
image

File contents

microsoft/upgrade-agent-plugins commit a0e071a274

Frequently asked questions

npx get-skill add microsoft/powershell-5-1-to-7-upgrade