PowerShell is a powerful tool that can be used to manage many aspects of your Windows 10 computer. One of the most popular PowerShell cmdlets is Update-WindowsFeature. This cmdlet can be used to update the features of your Windows 10 computer. To use Update-WindowsFeature, you must first create a new instance of PowerShell. Then, you must input the following information: The name of the feature you want to update The version number of your Windows 10 computer The language code for your computer (for example, English) Next, you must input the following information: The name of the feature you want to update The version number of your Windows 10 computer The language code for your computer (for example, English) Next, you must input the following information: $featureName = “MyNewFeature” $version = “10.0.14393.0” $language = “en-US” $osVersion = “8_1” # If this is not an existing feature on your machine, it will be created automatically $newFeatureName = “MyNewFeature” $newVersion = “10.0.14393.0” # If this is not an existing feature on your machine, it will be created automatically if (!(Get-WmiObject -Class Win32_feature -Filter ’name like “$featureName”’)) { New-Item -Path “$($featureName)” -ItemType Directory } else { New-Item -Path “$($newFeatureName)” -ItemType File } if (!(Test-Path “$($featureName))”) { Write-Host “Not found!” } else { Write-Host “$($featureName) has been updated!” }


If you check your PowerShell version and find it is out of date — or PowerShell has been helpfully reminding you that there is a new version available — you have a few options. Here is the best way to update PowerShell on Windows 11.

How to Update PowerShell

The best way to update PowerShell is through the command line, using winget.

Winget is a package manager introduced in Windows 10. Winget lets you download and install some programs from a centralized repository of programs rather than needing to track down an installer manually. It is a lot like apt on Debian-based Linux distros (like Ubuntu), dnf on Fedora, or pacman on Arch, if you’re familiar with those systems.

RELATED: How to Check the PowerShell Version on Windows 11

To download and install the update, open up a PowerShell tab in Terminal. Type or copy and paste the following command at the command line and press Enter. This command will download and install the latest version of PowerShell from Microsoft’s GitHub repository:

Once the download and installation is finished, you should close all of your Terminal windows.

It is important to note that PowerShell 7.x won’t completely replace PowerShell 5.x when you install it on your system. Instead. PowerShell 7.x is installed in a separate location, and both versions of PowerShell remain usable on your PC.

When you launch Terminal after installing PowerShell 7.x, you’ll find that you now have an additional PowerShell profile available.

You can switch to the new version of PowerShell at any time by clicking the little chevron (a tailless down arrow) at the top of the window and selecting it from the drop-down menu. You could also change the default shell in Terminal to the latest version of PowerShell if you’d prefer that.

PowerShell differs significantly from Command Prompt and is much more powerful. If you have to spend any substantial amount of time manipulating Windows 10 or Windows 11 with a command-line interface, it is worth investing some time in learning to use PowerShell.

RELATED: Geek School: Learn How to Automate Windows with PowerShell