How to install PowerShell 7.2 on Windows 11

<!–

–>

On Windows 11, PowerShell 7.2 is the next version of the command-line shell and scripting language designed for advanced users to automate tasks and change system settings.

The newest version was released on November 8, 2021, and it includes various improvements, including support for automatic updates through the Microsoft Update system whenever there are critical bug fixes or security updates. The ability to update the app is enabled automatically, no matter how you install it, but you can always disable the functionality.

PowerShell also brings enhanced support for ANSI escape sequences for text decoding support. Microsoft is even adding the new $PSStyle variable to make it easy to add decoration to your scripts or cmdlets as well as control the use of ANSI escape sequences. Furthermore, version 7.2 has a new feature to use your history to predict what you may be typing. 

Since it’s a cross-platform application, you can download and install the new version of PowerShell on Windows 11, 10, 8.1, Windows Server (2012 R2 and later), Ubuntu, Debian, CentOS, Fedora, and Alpine for Linux, and macOS. The app is also available for ARM-based devices, including for Windows, Ubuntu, Debian, and Alpine.

In this guide, you’ll learn the steps to install PowerShell 7.2 using the manual installer, Microsoft Store, and the Windows Package Manager (winget) command-line tool.

Install PowerShell 7.2 on Windows 11

To install PowerShell 7.2 on Windows 11, use these steps:

  1. Open PowerShell 7.2 on GitHub.

  2. Under the “Assets” section, click the PowerShell-7.2.0-win-x64.msi.

    PowerShell GitHub installer

  3. Save the file on the device.

  4. Double-click the downloaded file launch the installer.

  5. Click the Next button.

  6. (Optional) Select the installation folder.

  7. Click the Next button.

  8. (Optional) Check the Add ‘Open here’ context menu to Explorer option.

  9. (Optional) Check the Add ‘Run with PowerShell 7 context menu’ for PowerShell files option.

    PowerShell install options

    .Windows_Software_Technology-Big-343 { display:inline-block; width: 300px; height: 600px; } @media(min-width: 500px) { .Windows_Software_Technology-Big-343 { width: 300px; height: 600px;} }
  10. Click the Next button.

  11. Check the Enable updating PowerShell through Microsoft Update or WSUS option.

  12. Check the Use Microsoft Update when I check for updates option.

    PowerShell automatic updates

  13. Click the Next button.

  14. Click the Install button.

  15. Click the Finish button.

Once you complete the steps, the new version of PowerShell will install on the computer. After the installation, it’ll be available from the Start menu, and desktop and File Explorer right-click context menu. 

Install PowerShell 7.2 using Microsoft Store

To install PowerShell 7.2 through the Microsoft Store, use these steps:

  1. Open Microsoft Store on the web.

  2. Click the Get button for PowerShell 7.2.

  3. Click the Open button.

  4. Click the Get button from the Microsoft Store.

    Microsoft Store install PowerShell

After you complete the steps, you can click the Launch button or open the app from the Start menu to start using PowerShell.

Install PowerShell 7.2 using winget command

To install PowerShell 7.2 quickly with the winget command, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to install PowerShell 7.2 on Windows 11 with winget and press Enter:

    winget install --id Microsoft.PowerShell

    winget install PowerShell

Once you complete the steps, the Windows Package Manager will download and install the latest version of PowerShell on your computer.

These instructions focus on Windows 11, but they should also work to install the new version of PowerShell on Windows 10. If you want to learn more about PowerShell, check out this Microsoft documentation website.

Post a Comment