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-51-to-7-upgrade scenario for the PSSnapin blocker bucket.
Install
npx skills add microsoft/upgrade-agent-plugins --skill handling-removed-snapinsnpx skills add microsoft/upgrade-agent-plugins --skill handling-removed-snapins -a claude-code -gnpx skills add microsoft/upgrade-agent-plugins --skill handling-removed-snapins -a codex -ggemini skills install https://github.com/microsoft/upgrade-agent-plugins.git --path plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/handling-removed-snapinsgh skill install microsoft/upgrade-agent-plugins handling-removed-snapinsgit clone --depth 1 https://github.com/microsoft/upgrade-agent-plugins /tmp/microsoft__upgrade-agent-plugins
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/handling-removed-snapins ~/.claude/skills/handling-removed-snapins # Claude Code
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/handling-removed-snapins ~/.agents/skills/handling-removed-snapins # Codex, Cursor, Gemini CLI, Copilot, OpenCode