How to Update PowerShell in Windows 11

Microsoft regularly updates PowerShell to introduce new features, improve performance, fix bugs, and address security vulnerabilities. If you’re using Windows 11, keeping PowerShell up to date ensures you have access to the latest cmdlets, scripting improvements, and compatibility enhancements.

Windows 11 includes Windows PowerShell 5.1 by default, but Microsoft also offers PowerShell 7, a modern, cross-platform version that’s updated independently of Windows. Unlike Windows PowerShell, PowerShell 7 can receive frequent updates through several methods, including Microsoft Store, WinGet, and manual installation.

Update Windows Drivers

In this guide, you’ll learn multiple ways to update PowerShell in Windows 11, along with tips for verifying your installed version and troubleshooting common update issues.

Check Your Current PowerShell Version

PC running slow or unstable? Do you want to update drivers?

Before updating PowerShell, it’s helpful to know which version you’re currently running.

Using the PowerShell Console

  1. Press Windows + X.
  2. Select Terminal or Windows PowerShell.
  3. Type the following command:
$PSVersionTable.PSVersion
  1. Press Enter.

The command displays your current PowerShell version, including the major, minor, and patch numbers.

If the version starts with 5.1, you’re using Windows PowerShell. If it starts with 7, you’re using PowerShell 7.

Method 1: Update PowerShell Using WinGet

WinGet is Microsoft’s built-in package manager and is one of the easiest ways to update PowerShell.

Step 1

Open Windows Terminal or Command Prompt as Administrator.

Step 2

Run the following command:

winget upgrade Microsoft.PowerShell

Step 3

Repair PC

If an update is available, install it by following the prompts.

Alternatively, you can update all installed applications by running:

winget upgrade --all
PC running slow or unstable? Do you want to update drivers?

After the installation finishes, restart PowerShell and verify the new version.

Method 2: Update PowerShell from Microsoft Store

If you installed PowerShell from the Microsoft Store, updating it is simple.

  1. Open Microsoft Store.
  2. Click Library.
  3. Select Get updates.
  4. Wait for Windows to check for available updates.
  5. If PowerShell appears in the list, click Update.

Once the update completes, launch PowerShell to confirm the latest version is installed.

Method 3: Install the Latest PowerShell Manually

Microsoft provides standalone installers for PowerShell.

Step 1

Visit the official PowerShell download page on GitHub.

Step 2

Download the latest installer that matches your system:

  • x64
  • ARM64
  • x86 (if applicable)

Step 3

PC running slow or unstable? Do you want to update drivers?

Run the installer.

Step 4

Follow the installation wizard.

Step 5

Restart Windows Terminal if it’s already open.

The installer upgrades your existing PowerShell installation while preserving your settings.

Method 4: Update PowerShell Using MSI Installer

Organizations often deploy PowerShell using MSI packages.

To update using an MSI installer:

  1. Download the latest MSI package.
  2. Double-click the installer.
  3. Accept the license agreement.
  4. Choose the installation location.
  5. Complete the installation.

The installer automatically replaces the previous version.

Method 5: Update PowerShell with Windows Update

Windows Update primarily updates Windows PowerShell 5.1, which is included with Windows.

To check for updates:

  1. Press Windows + I.
  2. Open Windows Update.
  3. Click Check for updates.
  4. Install any available updates.
  5. Restart your computer if prompted.

Keep in mind that Windows Update does not always provide the newest PowerShell 7 release.

Method 6: Update PowerShell Using Windows Terminal

If PowerShell was installed through WinGet, you can update it directly from Windows Terminal.

Open Terminal as Administrator and run:

winget upgrade Microsoft.PowerShell

Wait for the process to complete, then restart Terminal.

Verify the Update

After updating PowerShell, confirm the installation.

Run:

$PSVersionTable.PSVersion

You should now see the latest installed version.

Difference Between Windows PowerShell and PowerShell 7

Many users confuse Windows PowerShell with PowerShell 7.

Windows PowerShell 5.1

  • Built into Windows 11
  • Receives updates through Windows Update
  • Based on the .NET Framework
  • Primarily intended for Windows administration

PowerShell 7

  • Separate installation
  • Cross-platform support
  • Built on modern .NET
  • Faster performance
  • Frequent feature updates
  • Better compatibility with modern scripting

Microsoft recommends PowerShell 7 for new scripts and automation whenever possible.

Common Update Problems

WinGet Doesn’t Recognize PowerShell

If WinGet reports that no package is found:

  • Update App Installer from Microsoft Store.
  • Run winget source update.
  • Restart the Terminal.

Installation Fails

Possible causes include:

  • Insufficient administrator permissions
  • Antivirus software blocking the installer
  • Corrupted installer download
  • Existing PowerShell process still running

Close all PowerShell windows before trying again.

Version Doesn’t Change

If the version remains the same:

  • Close every PowerShell window.
  • Restart Windows Terminal.
  • Restart the computer.
  • Verify you’re launching the updated PowerShell executable.

Multiple Versions Installed

It’s possible to have both Windows PowerShell 5.1 and PowerShell 7 installed simultaneously.

This is normal because they are separate applications.

Tips Before Updating

  • Close all PowerShell sessions before installing updates.
  • Download installers only from trusted Microsoft sources.
  • Back up important scripts before performing major upgrades.
  • Restart Windows Terminal after installation.
  • Verify the installed version after every update.

Frequently Asked Questions

Can I update Windows PowerShell 5.1 to PowerShell 7?

No. Windows PowerShell 5.1 and PowerShell 7 are separate products. Installing PowerShell 7 does not replace Windows PowerShell.

Is PowerShell 7 free?

Yes. PowerShell 7 is completely free and open source.

Will updating PowerShell affect my scripts?

Most scripts continue to work without issues. However, some scripts written specifically for Windows PowerShell 5.1 may require minor changes to run on PowerShell 7.

How often should I update PowerShell?

It’s recommended to install updates whenever Microsoft releases new stable versions, especially if you use PowerShell for scripting, automation, or system administration.

Conclusion

Updating PowerShell in Windows 11 is a simple way to access the latest features, performance improvements, and security fixes. Whether you choose to update using WinGet, the Microsoft Store, Windows Update, or a manual installer, each method takes only a few minutes to complete.

While Windows PowerShell 5.1 remains part of Windows 11, PowerShell 7 offers significant improvements in speed, compatibility, and functionality. Keeping it updated ensures you can take advantage of Microsoft’s latest enhancements for scripting and automation. After updating, always verify the installed version to confirm the process completed successfully and enjoy the latest PowerShell experience on your Windows 11 PC.

PC running slow or unstable? Do you want to update drivers?

GeeksDigit.Com
Logo