Upgrading Powershell ((top)) Info

This is the easiest method if you are on Windows 10 or 11. Winget is built into modern versions of Windows.

Modern "PowerShell" (versions 6.0 and above, currently v7.x) is cross-platform, open-source, and receives regular updates. upgrading powershell

Historically, Windows came with "Windows PowerShell" (versions 1.0 through 5.1). This version is considered feature-complete and is no longer being actively developed. This is the easiest method if you are on Windows 10 or 11

Run this diagnostic block in your new pwsh session: currently v7.x) is cross-platform

[System.Environment]::OSVersion.VersionString # Should show Windows 10/11/2022 $PSVersionTable.PSVersion # MUST be 7.x (e.g., 7.4.5) [System.Environment]::Is64BitProcess # Should be True Get-Command -CommandType Cmdlet | Measure-Object | Select-Object -ExpandProperty Count # Expected: > 1500 cmdlets (vs ~400 in PowerShell 5.1)