Handle Windows PowerShell-only modules (ActiveDirectory, ServerManager, Hyper-V, FailoverClusters, BitLocker, NetSecurity, Dism, Storage, ScheduledTasks, WebAdministration) that are not natively available in PowerShell 7.x, using Import-Module -UseWindowsPowerShell (the WinPS compatibility layer) or implicit remoting.
Install
npx skills add microsoft/upgrade-agent-plugins --skill fixing-windows-only-modulesnpx skills add microsoft/upgrade-agent-plugins --skill fixing-windows-only-modules -a claude-code -gnpx skills add microsoft/upgrade-agent-plugins --skill fixing-windows-only-modules -a codex -ggemini skills install https://github.com/microsoft/upgrade-agent-plugins.git --path plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/fixing-windows-only-modulesgh skill install microsoft/upgrade-agent-plugins fixing-windows-only-modulesgit 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/fixing-windows-only-modules ~/.claude/skills/fixing-windows-only-modules # Claude Code
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/fixing-windows-only-modules ~/.agents/skills/fixing-windows-only-modules # Codex, Cursor, Gemini CLI, Copilot, OpenCode