
Update to PowerShell
Visit the PowerShell Github page if you want to update to PowerShell via the installer. Look for the file with the MSI file extension under the Releases tab. If you’re running 64-bit Windows, make sure you download the 64-bit version. Run the installer as you would any other program, and it will take care of the rest.
Open PowerShell with admin rights if you want to update it from within the app. Execute the command below. You don’t need to change anything about the command. Run it in its current state.
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
The installer will be downloaded from the PowerShell Github page first. It may appear to be doing nothing for a while, but it is actually downloading the file.
Related: How to eject a USB drive with a keyboard shortcut on Windows 10
When the update is finished, you’ll see a new PowerShell window with the version number updated at the top.
If you’re curious about what’s new in PowerShell, visit the Github page where the changes are listed. The changes do not indicate a change that could have an impact on how you use it. Nothing in any PowerShell script needs to be changed to make it compatible with PowerShell 7.0. There are some new features in the update, but they mostly add functionality to existing ones and expand on some of PowerShell’s best commandlets.
Related: How to Change icon for file type on Windows 10
Run the following command in the run box (tap Win+R to open the run box) if you need to run an older version of PowerShell, such as version 5.
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Version 5
To run PowerShell 2.0, change the number at the end from 5 to 2. Along with PowerShell 5, PowerShell 7.0 is installed. PowerShell 7 can be found by searching for it in Windows search or browsing the apps list in the Start menu. It has a distinct icon from PowerShell 5 and should be easy to locate.
No Responses