Install PowerShell

Install PowerShell using WinGet (recommended)

WinGet, the Windows Package Manager, is a command-line tool that enables you to discover, install, upgrade, remove, and configure applications on Windows client computers. This tool is the client interface to the Windows Package Manager service. The winget command-line tool is included in Windows 11 and Windows Server 2025 as part of the App Installer.

 Note

See the winget documentation for a list of system requirements and install instructions. winget isn’t available on Windows Server 2022 or earlier versions. Windows Server 2025 includes winget for Windows Server with Desktop Experience only.

Use the following winget commands to install PowerShell:

Search for the latest version of PowerShell

PowerShell

winget search --id Microsoft.PowerShell
Output

Name               Id                           Version   Source
-----------------------------------------------------------------
PowerShell         Microsoft.PowerShell         7.6.0.0   winget
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.101 winget

Install PowerShell 7:

PowerShell

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

If you want to install PowerShell 7 Preview, use the following command:

PowerShell

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

 Note

On systems using the Arm64 processor, winget installs the Microsoft Store (MSIX) package.

Install the MSI package

To install PowerShell on Windows, use the following links to download the install package from GitHub.

Latest stable release:

Once downloaded, double-click the installer file and follow the prompts.