Migrate scripts that load the Exchange management snap-in (Microsoft.Exchange.Management.PowerShell.SnapIn / .E2010) off Windows PowerShell 5.1 to PowerShell 7.x, using implicit remoting (New-PSSession -ConfigurationName Microsoft.Exchange) for on-prem Exchange or the Exchange Online (EXO) REST-based module for Exchange Online.
安装
npx skills add microsoft/upgrade-agent-plugins --skill migrating-exchange-management-shellnpx skills add microsoft/upgrade-agent-plugins --skill migrating-exchange-management-shell -a claude-code -gnpx skills add microsoft/upgrade-agent-plugins --skill migrating-exchange-management-shell -a codex -ggemini skills install https://github.com/microsoft/upgrade-agent-plugins.git --path plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/migrating-exchange-management-shellgh skill install microsoft/upgrade-agent-plugins migrating-exchange-management-shellgit 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/migrating-exchange-management-shell ~/.claude/skills/migrating-exchange-management-shell # Claude Code
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/migrating-exchange-management-shell ~/.agents/skills/migrating-exchange-management-shell # Codex, Cursor, Gemini CLI, Copilot, OpenCode