Skip to content

Install PowerShell 7

Purpose

Install PowerShell 7 as the standard shell for automation and administration.

Install with winget

winget install --id Microsoft.PowerShell --source winget

Verify

pwsh --version
Install-Module PSReadLine -Scope CurrentUser -Force
Install-Module Microsoft.Graph -Scope CurrentUser

Notes

Windows PowerShell 5.1 is still required for some legacy AD and Windows management tasks, but PowerShell 7 should be the default for modern scripts where supported.