Installing PowerShell 7 on Windows 11¶
Overview¶
This guide covers installing the latest stable release of PowerShell 7 on a Windows 11 VM.
What you'll do
- Download the official MSI installer from Microsoft’s GitHub
- Install PowerShell 7 with recommended options
- Verify the installation and version
- (Optional) Set PowerShell 7 as the default in Windows Terminal
Before you start
Take a VM snapshot before making system changes.
Prerequisites¶
- Windows 11 VM running
- Internet access in the VM
- Administrator permissions to install software
- (Optional) Windows Terminal already installed
Helpful links
Steps¶
1. Download PowerShell 7¶
- Open a browser inside your VM.
- Go to the official releases page:
PowerShell Releases - Scroll to the latest stable release (avoid Preview).
- Under Assets, download:
- MSI installer (x64) — Example:
PowerShell-7.x.x-win-x64.msi
- Save the file to
Downloads
or yourTools
folder.
2. Install PowerShell 7¶
- Run the downloaded
.msi
file. - In the installer, select:
- ✅ Add
pwsh
to PATH - ✅ Enable PowerShell Remoting (optional)
- ✅ Add Explorer context menu (optional)
- Complete the installation.
- Restart the VM if prompted.
Caution
Always confirm you installed the x64 MSI — avoid ARM/x86 unless needed.
3. Verify Installation¶
Open Start → PowerShell 7 (x64), or run pwsh
from the Run dialog. Then check the version:
$PSVersionTable.PSVersion
Example output:
Major Minor Patch
----- ----- -----
7 4 0
4. (Optional) Make PowerShell 7 Default in Windows Terminal¶
- Open Windows Terminal.
- Go to Settings → Startup → Default Profile.
- Select PowerShell 7.
- Save changes.
Verification¶
pwsh
launches without error$PSVersionTable.PSVersion
reports 7.x.x- (If configured) Windows Terminal opens with PowerShell 7
It worked if…
- Running
pwsh
starts PowerShell 7 - Version table confirms 7.x.x
- Windows Terminal defaults to PowerShell 7
Troubleshooting¶
pwsh
not recognized → PATH not updated → reinstall with PATH option- Still on 5.1 → Make sure you run PowerShell 7 (x64), not the built-in 5.1
- Installer blocked → Right-click
.msi
→ Properties → tick Unblock
Common issues
- Wrong build installed → uninstall/reinstall MSI x64
- Execution blocked by SmartScreen → allow or unblock file
References¶
- PowerShell GitHub Releases
- Windows Terminal on Microsoft Store
- Internal:
[Installing Windows 11 on VirtualBox](<./Installing Windows 11 on VirtualBox.md>)