How to install PowerShell 7 on Windows 10

How to install PowerShell 7 on Windows 10

In today’s IT workflow almost every administrator will need to managing different aspect of environment whether from cloud or local endpoints, at certain points we need a tool to automate and simplifying our process, thus, PowerShell should be one of our tools on hand. In this post I’ll demonstrate how to install PowerShell 7 on Windows client for Power User & IT professionals.

What is PowerShell 7

PowerShell 7.x is the latest major update to PowerShell, is a cross-platform (Windows, Linux, and macOS) automation tool and configuration framework optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and objective models. PowerShell includes a command-line shell, object-oriented scripting language, and a set of tools for executing scripts/cmdlets and managing modules. It was released on 2020 which was 4 years ago, it provides lots of new features and improvements compared to PS6. As an IT Pro we should have the latest PowerShell in our environment in order to working with certain Microsoft 365 flows and endpoints.

Steps for installing PowerShell 7 on Windows 10

1. Launch PowerShell with Administrator rights.

2. Enter “winget search Microsoft.PowerShell” > press enter key. If your entered this line of command and it throws you with error message then you need open Microsoft Store to install Windows Package Manager manually.

3. Select your desired PowerShell version (in this case, there are two version available, one for the general availability and other is a preview version) > enter “winget install — id Microsoft.PowerShell – source winget” > press enter key. Depending on your network conditions, this may taking less than 5 minutes or more than 15 minutes.

4. Once it downloaded it will start to verifying the package and initiate the installation automatically.

5. When finished, you may find it under Start menu > PowerShell 7 > then enter some cmdlets to verify. In my case trying to update the help documentation.

The above steps also works on Windows 11 as well. For using PowerShell 7 on Windows 10 and Windows 11 platform suggest best to using it via the Terminal app. When open up the Terminal app > you can enter “pwsh” to switching to PowerShell 7.

Leave a Reply

Your email address will not be published. Required fields are marked *