Handling Removed Snapins

Handle PowerShell snap-ins (Add-PSSnapin / Get-PSSnapin / Remove-PSSnapin) that do not exist in PowerShell 7.x. Provides the decision tree between module replacement, implicit remoting into a Windows PowerShell endpoint, and the Windows PowerShell compatibility layer. Use during the powershell-5.1-to-7-upgrade scenario for the PSSnapin blocker bucket. For the Exchange snap-in specifically, see migrating-exchange-management-shell.

Microsoft a176894 3.9 KB Updated 2.7k repo stars

File contents

microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/handling-removed-snapins commit a176894f52

Frequently asked questions

npx skillmds@latest add microsoft/handling-removed-snapins