Fixing Windows Only Modules

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. Use during the powershell-5.1-to-7-upgrade scenario for the Windows-only-module bucket.

Microsoft 5a70cef 3.3 KB Updated 2.7k repo stars

File contents

microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/fixing-windows-only-modules commit 5a70cef777

Frequently asked questions

npx skillmds@latest add microsoft/fixing-windows-only-modules