PowerShell 7 Installation Guide for Windows 11, 10, and Server 2025 Using Winget
The PowerShell version built into Windows is called Windows PowerShell. It's PowerShell version 5.1. The newer version is called PowerShell Core or simply PowerShell, and the latest stable release is PowerShell 7.
To install PowerShell 7 on your PC (Windows 10, 11, or Server 2025), open a Command Prompt or PowerShell console and run the following command:
winget install microsoft.powerShell
PowerShell 7 will be installed separately and It won’t replace the older version; instead, both versions will coexist.
You can check the PowerShell version by running the following command:
$PSVersionTable
PowerShell 7 Process Name
The older version, Windows PowerShell, uses the powershell.exe
process, while PowerShell 7 uses the pwsh
process. This difference in process names allows both versions to coexist on the same computer.
It also means that if you're going to run a PowerShell script, like in Task Scheduler, you need to use pwsh.exe
if you want to use PowerShell 7.
PowerShell 7 IDE
Another thing to note is that PowerShell 7 doesn’t have an integrated development environment (IDE) like Windows PowerShell. Instead, you’ll use Visual Studio Code for scripting and development.
Just Make Sure to install the Powershell extension on Visual Studio Code.
Manual Installation of PowerShell 7
On a Windows version that doesn't support winget command, like Windows Server 2019, you can download the PowerShell 7 installer from the learn.microsoft.com website.
If you want to learn more about PowerShell, don't forget to subscribe to our YouTube channel @RealClearComputing.