📌 Introduction: Why Upgrade PowerShell?
PowerShell is a powerful command-line tool in Windows. However, the default version (5.1) is outdated. Microsoft has released PowerShell 7.5 and the preview version 7.6, offering cross-platform compatibility (Windows, Linux, macOS), improved performance, intelligent command auto-completion, and enhanced multithreading. If you’re still stuck on version 5.1, it’s time to upgrade!
🚀 1. Check Your Current PowerShell Version
Before upgrading, you need to verify the current version:
- Press `Win + S`, search for `PowerShell`, and open it.
- Enter the following command:
$PSVersionTable
- Press Enter. You will see your current PowerShell version, e.g.:
PSVersion: 5.1.19041.2364
🔥 2. Upgrade PowerShell via GitHub
Best for users with GitHub access
- Open your browser and go to the [PowerShell GitHub repository](https://github.com/PowerShell/PowerShell).
- Click the `Releases` tab to view available versions.
- Select the latest stable release (e.g., `7.5.0`).
- Click `Show all assets` and download the installer that matches your system:
– `PowerShell-7.5.0-win-x64.msi` → for 64-bit Windows
– `PowerShell-7.5.0-win-x86.msi` → for 32-bit Windows - Run the installer:
– Check `Enable PowerShell Remoting` and `Add PowerShell to Path`
– Click `Next` repeatedly, then `Install` - After installation, check `Launch PowerShell` and click `Finish`.
⚡ 3. Install PowerShell Using Winget
Best for users who prefer command-line installations
- Open the old version of PowerShell (5.1).
- Search for PowerShell versions:
winget search Microsoft.PowerShell
- Install the latest version:
– Stable version:winget install --id Microsoft.PowerShell --source winget
– Preview version:
winget install --id Microsoft.PowerShell.Preview --source winget
🛒 4. Install PowerShell via Microsoft Store
Best for GUI users
- Press `Win + S`, search for `Microsoft Store`, and open it.
- Search for `PowerShell`.
- Click `Get` next to `PowerShell 7.5` or the preview version.
- Once installed, click `Open`.
🔧 5. Verify the Upgrade
- After installation, confirm the version by running:
$PSVersionTable
- If you see `7.5.0` or higher, the upgrade was successful.
✅ Conclusion
- With the methods explained above, you can easily upgrade PowerShell on Windows:
– Method 1: GitHub download
– Method 2: Winget installation
– Method 3: Microsoft Store installation - Choose the method that suits you best and enjoy the new PowerShell experience!
6. Demo Video
You can watch the following demo video by select the subtitle to your preferred subtitle language.