scanning-powershell-compatibility
Detect Windows PowerShell 5.1 → 7.x compatibility blockers across a tree of .ps1/.psm1/.psd1 files. Two parts: generate and validate a PSScriptAnalyzer compatibility profile for the target host (the primary detector, covering removed commands/parameters/types), then run a small parser-driven catalog as a sidecar for what PSScriptAnalyzer is…
Full publisher description
Detect Windows PowerShell 5.1 → 7.x compatibility blockers across a tree of .ps1/.psm1/.psd1 files. Two parts: generate and validate a PSScriptAnalyzer compatibility profile for the target host (the primary detector, covering removed commands/parameters/types), then run a small parser-driven catalog as a sidecar for what PSScriptAnalyzer is structurally blind to — encoding and other behavioral changes, parameter values, type accelerators, module availability, COM, and deprecated-but-present cmdlets. Produces scan-findings.csv keyed by rule id, which seeds the assessment, the plan, and the execution re-scan gate. Use during the powershell-51-to-7-upgrade scenario, or any time you need a reproducible inventory of PowerShell compatibility blockers. DO NOT USE FOR: scanning C#/.NET code, PSScriptAnalyzer style rules, or verifying that a fix works (that is the validation ladder's job). INVOKES: scripts/New-PSSACompatibilityProfile.ps1, scripts/Get-PSCompatibilityScan.ps1.
Source details
Read SKILL.md ↗ · Browse skill folder ↗
microsoft/upgrade-agent-plugins
plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/scanning-powershell-compatibility/SKILL.mdPinned revision cede9dcfbc09a06f0e63652e64fc7545ce5fe1df
Source checked
Reviewed licence: LicenseRef-Microsoft-Copilot-Modernization-Preview
Repository default at the reviewed revision: Visual Studio development/testing only; preview expiry, confidentiality and no-sharing/distribution restrictions apply. Copilot access has separate terms.
Reviewed publisher revision ↗ · 2026-11-22
This indexed source has a different revision. Verify its applicable terms before use.
This skill page is available in English. Publisher instructions stay in their original language.