Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. There are multiple ways to install PowerShell in Windows. Each install method is designed to support different scenarios and workflows.
Choose the method that best suits your needs. The installation commands in this article are for the latest stable release of PowerShell. To install a different version of PowerShell, adjust the command to match the version you need. The following links direct you to the release page for each version in the PowerShell repository on GitHub.
Download links for every package are found in the Assets section of the Release page. The Assets section may be collapsed, so you may need to click to expand it. To install PowerShell on Windows, use the following links to download the install package from GitHub.
PowerShell 7. If you need to run PowerShell 7. Enabling updates may have been set in a previous installation or manual configuration. Also, this setting can be overruled by Group Policy settings controlled by your administrator. MSI packages can be installed from the command line allowing administrators to deploy packages without user interaction. The MSI package includes the following properties to control the installation options:. The following example shows how to silently install PowerShell with all the install options enabled.
For a full list of command-line options for Msiexec. PowerShell binary ZIP archives are provided to enable advanced deployment scenarios. Download one of the following ZIP archives from the current release page. Depending on how you download the file you may need to unblock the file using the Unblock-File cmdlet. Unzip the contents to the location of your choice and run pwsh.
For remoting over WSMan to work properly, ensure that you've met the prerequisites. If you already have the. NET Global tool.
You can start PowerShell from a new shell by typing pwsh. Winget, the Windows Package Manager, is a command-line tool enables developers to discover, install, upgrade, remove, and configure applications on Windows 10 computers.
This tool is the client interface to the Windows Package Manager service. See the winget documentation for a list of system requirements and install instructions. The following commands can be used to install PowerShell using the published winget packages:. By default, Windows Store packages run in an application sandbox that virtualizes access to some filesystem and registry locations.
Changes to virtualized file and registry locations do not persist outside of the application sandbox. This sandbox all blocks any changes to the application's root folder. This prevents remote sessions from connecting to Store-based installs of PowerShell. User-level configurations and SSH remoting are supported. These commands are not supported in a Microsoft Store instance of PowerShell. For more information, see Understanding how packaged desktop apps run on Windows. Beginning in PowerShell 7.
Changes to virtualized file and registry locations now persist outside of the application sandbox. However, changes to the application's root folder are still blocked. For best results when upgrading, you should use the same install method you used when you first installed PowerShell. Each installation method installs PowerShell in a different location. If you are not sure how PowerShell was installed, you can compare the installed location with the package information in this article.
When you set up PowerShell Remoting you get an error message and are disconnected from the device. PowerShell has to restart WinRM. Now you can connect to PowerShell 7 endpoint on device. So the zip based install does not work. These instructions assume that the Nano Server is a "headless" OS that has a version of PowerShell is already running on it. For more information, see the Nano Server Image Builder documentation.
In both cases, you need the Windows x64 ZIP release package. Run the commands within an "Administrator" instance of PowerShell. If you want WSMan-based remoting, follow the instructions to create a remoting endpoint using the "another instance technique".
For more information, see:. The following table is a list of PowerShell releases and the versions of Windows they are supported on. These versions are supported until either the version of PowerShell reaches end-of-support or the version of Windows reaches end-of-support.
Support for a specific version of Windows is determined by the Microsoft Support Lifecycle policies. Microsoft supports the installation methods in this document. There may be other third-party methods of installation available from other sources. While those tools and methods may work, Microsoft cannot support those methods. Skip to main content. This browser is no longer supported.
Download Microsoft Edge More info. Table of contents Exit focus mode. Table of contents. Note The installation commands in this article are for the latest stable release of PowerShell.
Note PowerShell 7. Note Enabling updates may have been set in a previous installation or manual configuration. Note See the winget documentation for a list of system requirements and install instructions. Important You must be running on Windows build or higher for this exemption to work.
Note Support for a specific version of Windows is determined by the Microsoft Support Lifecycle policies. Submit and view feedback for This product This page. View all page feedback. In this article.
On the initial release of Windows 10, with automatic updates enabled, PowerShell gets updated from version 5. If the original version of Windows 10 is not updated through Windows Updates, the version of PowerShell is 5. Otherwise, what you might need is Install and configure Azure PowerShell. Windows PowerShell System Requirements. Starting Windows PowerShell. Skip to main content. This browser is no longer supported. Best Stereo Amplifiers.
Best Surge Protectors. Best Ethernet Cables. Reader Favorites Best Linux Laptops. Best Wi-Fi Routers. Awesome PC Accessories. Best Wireless Earbuds. Best Smartwatches. Best Meta Quest 2 Accessories. Best Home Theater Systems. Browse All News Articles.
Amazon Buys Roomba. Pinch-to-Zoom on YouTube. Best Budget Bluetooth Speakers. Best Photo Printers. Best Car Phone Mounts. Best Retro Controllers for Pi.
Best Stereo Amplifiers. Best Surge Protectors. Best Ethernet Cables. Reader Favorites Best Linux Laptops. Best Wi-Fi Routers. Awesome PC Accessories.
Best Wireless Earbuds. Best Smartwatches. Best Meta Quest 2 Accessories. Best Home Theater Systems. This prevents remote sessions from connecting to Store-based installs of PowerShell. User-level configurations and SSH remoting are supported. These commands are not supported in a Microsoft Store instance of PowerShell. For more information, see Understanding how packaged desktop apps run on Windows. Beginning in PowerShell 7.
Changes to virtualized file and registry locations now persist outside of the application sandbox. However, changes to the application's root folder are still blocked. For best results when upgrading, you should use the same install method you used when you first installed PowerShell. Each installation method installs PowerShell in a different location. If you are not sure how PowerShell was installed, you can compare the installed location with the package information in this article.
When you set up PowerShell Remoting you get an error message and are disconnected from the device. PowerShell has to restart WinRM. Now you can connect to PowerShell 7 endpoint on device. So the zip based install does not work. These instructions assume that the Nano Server is a "headless" OS that has a version of PowerShell is already running on it.
For more information, see the Nano Server Image Builder documentation. In both cases, you need the Windows x64 ZIP release package. Run the commands within an "Administrator" instance of PowerShell.