Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Install and update PowerShell version 7 on Windows and Linux

Posted on 22/05/202006/09/2026 Christian By Christian No Comments on Install and update PowerShell version 7 on Windows and Linux
  1. Home
  2. Scripts
  3. Install and update PowerShell version 7 on Windows and Linux
install PowerShell version 7

In this guide we shall discuss “Install and update PowerShell version 7 on Windows and Linux”. On March 4th, 2020, Microsoft announced the Generally Available (GA) release of PowerShell 7.0. PowerShell 7 is the latest major update to PowerShell, 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 object models. Please, see How to upgrade Veeam Backup and Replication 12.3, and how to update Veeam Backup and Replication [VBR].

PowerShell includes a command-line shell, object-oriented scripting language, and a set of tools for executing scripts/cmdlets and managing modules. Before running PowerShell scripts, ensure to run them with Administrative privilege and also permit the execution of PowerShell scripts on the server. Here is a link to an alternative method to update PowerShell.

For more information on how to do perform this task, see the following guides. “how to set PowerShell Execution Policy via Windows Settings, how to set Execution Policy via Windows PowerShell, and how to set the PowerShell Execution Policy via Windows Registry.

Support for PowerShell 7

Operating systems supported PowerShell 7: PowerShell support ARM32 and ARM64 flavors of Debian and Ubuntu, as well as ARM64 Alpine Linux many others as listed below.
– Windows 10
– Windows Server 2012, 2012 R2, 2016, and 2019
– macOS 10.13+
– Red Hat Enterprise Linux (RHEL) / CentOS 7+
– Fedora 29+
– Debian 9+
– Ubuntu 16.04+
– openSUSE 15+
– Alpine Linux 3.8+

Note: Although not officially supported, the community has also provided packages for Arch and Kali Linux.

Microsoft products already in support of PowerShell 7

Any module that is already supported by PowerShell Core 6.x is also supported in PowerShell 7, including:
– Azure PowerShell (Az.*)
– Active Directory

Also, many of the modules in Windows 10 and Windows Server as well. use the following commands to get the available list

Get-Module -ListAvailable

With this guide, you will learn how to upgrade to PowerShell v7 manually. First, determine the current version of PowerShell that you are using, see the following link for more details

As we can see, we are currently on version 5.1 as shown below

update PowerShell

Windows

One-liner to install (update) PowerShell 7 on Windows 10. Launch PowerShell with Administrative privilege and run the command below.

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
Windows PowerShell 7

In few seconds or minutes, this will prompt the PowerShell installer Window as shown below. Click on Next

Linux PowerShell installation

Select the destination folder you would like PowerShell to be installed to. I will leave it as default as I am ok with it.

Windows PowerShell 7

Under Optional Actions, enable the following as shown below. The last option I did not enable is up to you if you would like to enable it.

The wizard will also ask you to register PowerShell to the PATH environment variable. Adding the PowerShell installation folder to the PATH environment variable allows you to call PowerShell from any other terminal such as a different version of PowerShell or even cmd.exe as we will see at the end of this installation.

Also, enable PowerShell Remoting from this Window and this can help with all remote tasks.

Note: Add ‘Open Here’ context menus to Explorer. This option enables you to right-click on any folder when browsing in the Windows Explorer and open a PowerShell window within that working directory.

install PowerShell version 7

Finally, click on done to install or update PowerShell 7 to your device

update PowerShell

Installation Status

This will continue the install process as shown below

Linux PowerShell installation

When you are done, click on the finish button.

PowerShell 7-x64 setup completion screen with a character in a blue outfit and a cape, displaying a button to launch PowerShell and a Finish button.

Because I selected the option to launch PowerShell, it automatically fired up PowerShell and as we can see, we are currently running PowerShell version 7.

A screenshot of PowerShell 7.0.1 running in a command line interface, displaying the title and a prompt with the path 'C:\Program Files\PowerShell\7>'

When this step is completed, update the PowerShellGet and Package Management. For more information, see this link.
– Note: You can also download the MSI from here and to install PowerShell 7 silently, use the following command below.

msiexec.exe /package PowerShell-7.0.1-win-x64.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1

Linux

One-liner script to install (update) PowerShell 7 on Linux. Open your Linux terminal and run the command below to update to PowerShell 7

pwsh
A terminal window displaying an error message that the command 'pwsh' is not found, with a suggestion to install PowerShell using 'sudo snap install powershell'.

As we can see, we currently do not have PowerShell running on this Ubuntu server. To view PowerShell.
– At this moment of writing this article, PowerShell is currently not supported on Ubuntu 20.04.

Therefore, feel free to try out this one-liner installation with other versions of Ubuntu.

wget https://aka.ms/install-powershell.sh; sudo bash install-powershell.sh; rm install-powershell.sh
A terminal window displaying commands to install PowerShell on a Linux system, including a wget command and a sudo password prompt.

Enter your password to continue. When this is done, this process will complete successfully. For other installation methods for Linux, please visit this link for more information. When this step is completed, ensure to update the PowerShellGet and Package Management. See this link for more information. Note: PowerShell 7.1 is currently being developed.

I hope you found this blog post on how to Install and update PowerShell version 7 on Windows and Linuxhelpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Scripts, Windows Server Tags:How to install and update PowerShell 7 on Windows and Linux, how to upgrade PowerShell 7 on Linux, install latest PowerShell Linux Ubuntu, install PowerShell 7 Windows guide, install PowerShell Core 7 cross platform, Linux distro, PowerShell, PowerShell 7 installation steps Windows, PowerShell 7 setup Windows 10 and 11, Ubuntu, update PowerShell, update PowerShell 7 command line, update PowerShell version 7 Linux, upgrade PowerShell, Windows Server 2016

Post navigation

Previous Post: How to redeem App Store gift card or content codes on MacBook Pro
Next Post: PowerShell: How to update PowerShellGet and Package Management

Related Posts

  • dc
    Fix MDT accidental OS deletion Windows Server
  • newsroom hero image password security
    Unable to update the password value provided for the new password and Password Policy Windows Server
  • sdgfdhx
    MDT Warning: Unable to set working directory, the application returned an unexpected code 2 Windows Server
  • image 24
    How to Resolve Microsoft RDP Connection Black Screen Windows
  • dfefeq
    Error 740: Elevated permissions are required to run DISM Windows Server
  • Create advantaced task scheduler
    How to create an Advanced Windows Scheduled Task Windows Server

More Related Articles

ad lds 832x400 1 Active Directory Lightweight Directory Services [AD LDS] Windows Server
remote video disconnected Video Remoting was disconnected on Hyper V Windows Server
image How to find Computer Serial Number stated change to be filled by OEM Windows Server
adfs training Post-Deployment of Active Directory Federation Service (ADFS) Windows Server
WindowsUpdatesDISM 1 Determine Apps UWP and remove pre-provisioned Appx in Windows Windows Server
WSUS Post deployment Configuration Failed The schema version of the database is from a newer version of wsus Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • docker desktop 1
    Failed to remove network for build: Error during connect in the default daemon configuration on Windows, the Docker client must be run with elevated privileges Containers
  • powerpoint 1280x720 1
    How to change the speller and proofing language in PowerPoint Microsoft Exchange/Office/365
  • UpdateOfficeOnlineServer 1
    Perform Office Online Server Update via Windows Updates Windows Server
  • Retieve BitLocker Recovery Keys from microsoft sql
    Get MBAM BitLocker Recovery Keys from Microsoft SQL Server Windows
  • Synology Wi Fi CC400W
    Review of the Synology CC400W Installation and Configuration Network | Monitoring
  • VPNonWindows
    Configure VPN on Windows Server: How to allow remote VPN Access for Domain or Local Users Windows Server
  • ARI Banner e1784558934898
    Azure Resource Inventory (ARI) for Engineers: Improving Control and Compliance AWS/Azure/OpenShift
  • windows10update 1
    License file was not found in the specified path (Error 0xc1570103) Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.