PowerShell installation and servicing on Windows
Microsoft's edit ·
Microsoft's commit message in MicrosoftDocs/PowerShell-Docs · commit 58137d7 · +81 −49 lines · also on GitHub
11
---
22
description: How to install PowerShell on Windows
3
−ms.date: 04/21/2026
3
+ms.date: 04/22/2026
44
title: Install PowerShell 7 on Windows
55
---
66
# Install PowerShell 7 on Windows
⋯ 5 unchanged lines
1212
1313
There are multiple package versions of PowerShell 7 that can be installed. This article focuses on
1414
installing the latest stable release package. For more information about the package versions, see
15
−the [PowerShell Support Lifecycle][26] article.
15
+the [PowerShell Support Lifecycle][25] article.
1616
1717
## Choose an installation method
1818
⋯ 2 unchanged lines
2121
2222
- [WinGet][11] - Recommended way to install PowerShell on Windows clients
2323
- [MSI package][09] - Best choice for Windows Servers and enterprise deployment scenarios
24
−- [ZIP package][12] - Easiest way to _side load_ or install multiple versions
25
− - Use this method for Windows Nano Server, Windows IoT, and Arm-based systems
24
+- [MSIX package][10] - An easy way to install for casual users of PowerShell but has limitations
25
+- [ZIP package][12] - Easiest way to _side load_ or install multiple versions or install on Windows
26
+ Server Core, Windows IoT, and Arm-based systems
2627
- [.NET Global tool][08] - A good choice for .NET developers that install and use other global tools
27
−- [Microsoft Store package][10] - An easy way to install for casual users of PowerShell but has
28
− limitations
2928
30
−### Install PowerShell using WinGet (recommended)
29
+### Install PowerShell using WinGet
3130
3231
<a id="winget"></a>WinGet, the Windows Package Manager, is a command-line tool that enables you to
3332
discover, install, upgrade, remove, and configure applications on Windows client computers. This
⋯ 21 unchanged lines
5554
PowerShell Microsoft.PowerShell 7.6.1.0 winget
5655
```
5756
58
−Install PowerShell 7:
57
+Beginning with the winget package for PowerShell 7.6.0, winget installs the MSIX package by default.
5958
59
+Install the PowerShell 7 MSIX package:
60
+
6061
```powershell
6162
winget install --id Microsoft.PowerShell --source winget
6263
```
6364
64
−If you want to install PowerShell 7 Preview, use the following command:
65
+Use the following command to install the PowerShell 7 MSI package:
6566
6667
```powershell
67
−winget install --id Microsoft.PowerShell.Preview --source winget
68
+winget install --id Microsoft.PowerShell --source winget --installer-type wix
6869
```
6970
70
−> [!NOTE]
71
−> On systems using the Arm64 processor, `winget` installs the Microsoft Store (MSIX) package.
71
+Alternatively, you can manually download and install the [MSI package][09].
7272
73
+Beginning with the winget package for PowerShell 7.7.0-preview.1, there is no MSI package available.
74
+WinGet only installs the MSIX package.
75
+
76
+Use the following command to install PowerShell 7.7-preview packages:
77
+
78
+```powershell
79
+winget install --id Microsoft.PowerShell.Preview --source winget
80
+```
81
+
7382
### Install the MSI package
7483
7584
<a id="msi"></a>To install PowerShell on Windows, use the following links to download the install
⋯ 1 unchanged line
7786
7887
Latest stable release:
7988
80
−- [PowerShell-7.6.1-win-x64.msi][15]
81
−- [PowerShell-7.6.1-win-arm64.msi][13]
82
−
83
−<!-- Update the links below to the latest preview release when available.
84
−Latest Preview release:
85
−
86
−- [PowerShell-7.6.1-rc.1-win-x64.msi][20]
87
−- [PowerShell-7.6.1-rc.1-win-arm64.msi][19]
88
−-->
89
+- [PowerShell-7.6.1-win-x64.msi][17]
90
+- [PowerShell-7.6.1-win-arm64.msi][15]
8991
9092
Once downloaded, double-click the installer file and follow the prompts.
9193
92
−### Install the MSI package from the command line
94
+### Install the MSI package with command-line options
9395
9496
MSI packages can be installed from the command line allowing administrators to deploy packages
9597
without user interaction. The MSI package includes the following properties to control the
⋯ 32 unchanged lines
128130
The following example shows how to silently install PowerShell with all the install options enabled.
129131
130132
```powershell
131
−msiexec.exe /package PowerShell-7.6.1-win-x64.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1 ADD_PATH=1
133
+$msiParams = @(
134
+ '/package PowerShell-7.6.1-win-x64.msi'
135
+ '/quiet'
136
+ 'ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1'
137
+ 'ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1'
138
+ 'ENABLE_PSREMOTING=1'
139
+ 'REGISTER_MANIFEST=1'
140
+ 'USE_MU=1'
141
+ 'ENABLE_MU=1'
142
+ 'ADD_PATH=1'
143
+)
144
+msiexec.exe @msiParams
132145
```
133146
134147
For a full list of command-line options for `Msiexec.exe`, see [Command line options][05].
135148
136
−### Install from the ZIP package
149
+### Install the ZIP package
137150
138151
<a id="zip"></a>PowerShell binary ZIP archives are provided to enable advanced deployment scenarios.
139
−Download one of the following ZIP archives from the [current release][22] page.
152
+Download one of the following ZIP archives from the [current release][21] page.
140153
141
−- [PowerShell-7.6.1-win-x64.zip][16]
142
−- [PowerShell-7.6.1-win-arm64.zip][14]
154
+- [PowerShell-7.6.1-win-x64.zip][18]
155
+- [PowerShell-7.6.1-win-arm64.zip][16]
143156
144157
Depending on how you download the file you may need to unblock the file using the `Unblock-File`
145158
cmdlet. Unzip the contents to the location of your choice and run `pwsh.exe` from there. Unlike
⋯ 19 unchanged lines
165178
However, the currently running shell doesn't have the updated `$Env:PATH`. You can start PowerShell
166179
from a new shell by typing `pwsh`.
167180
168
−### Install from the Microsoft Store
181
+### Install the MSIX package
169182
170
−<a id="msstore"></a>PowerShell can be installed from the Microsoft Store. You can find the
171
−PowerShell release in the [Microsoft Store][23] site or in the Store application in Windows.
183
+<a id="msstore"></a>PowerShell can be installed from the [Microsoft Store][22] or by manually
184
+downloading the MSIX package.
172185
173186
Benefits of the Microsoft Store package:
174187
⋯ 1 unchanged line
176189
- Integrates with other software distribution mechanisms like Intune and Configuration Manager
177190
- Can install on Windows systems using x64 or Arm64 processors
178191
179
−#### Limitations of a Store-based installation
192
+To manually install the MSIX package, download one of the following packages from the GitHub
193
+releases page and double-click the file to install it.
180194
195
+- Latest LTS - [PowerShell-7.6.1.msixbundle][19]
196
+- Latest stable - [PowerShell-7.5.6.msixbundle][14]
197
+- Previous LTS - [PowerShell-7.4.15.msixbundle][13]
198
+
199
+Alternatively, you can use the following command to install the MSIX package from the command line:
200
+
201
+```powershell
202
+Add-AppxPackage -Path ".\PowerShell-7.6.1.msixbundle"
203
+```
204
+
205
+#### Limitations of a MSIX-based installation
206
+
181207
Store-based installations are installed for a single user. There is no option to install it for all
182208
users. By default, Microsoft Store packages run in an application sandbox that virtualizes access to
183209
some filesystem and registry locations. Changes to virtualized file and registry locations don't
⋯ 40 unchanged lines
224250
The following screenshot shows multiple versions of PowerShell in the Start Menu. Select the item
225251
labeled **PowerShell 7**.
226252
227
−![PowerShell in the Start Menu.][24]
253
+![PowerShell in the Start Menu.][23]
228254
229255
The selected entry is for PowerShell 7. Preview versions of PowerShell 7 install side-by-side with
230256
stable versions. Select the item labeled **PowerShell 7-preview** to start the preview version.
⋯ 9 unchanged lines
240266
the latest PowerShell 7 updates in your traditional Microsoft Update (MU) management flow, whether
241267
that's with Windows Update for Business, WSUS, Microsoft Endpoint Configuration Manager, or the
242268
interactive MU dialog in **Settings**. For more information, see the
243
−[PowerShell Microsoft Update FAQ][25].
269
+[PowerShell Microsoft Update FAQ][24].
244270
245271
If you want to upgrade to the latest version of PowerShell 7 before it's available through Microsoft
246272
Update, you should use the same install method you used when you first installed PowerShell. Newer
⋯ 5 unchanged lines
252278
which always points to the directory containing PowerShell that the current session is running.
253279
254280
- If the value is `$HOME\.dotnet\tools`, PowerShell was installed with the [.NET Global tool][08].
255
−- If the value is `$Env:ProgramFiles\PowerShell\7`, PowerShell was installed as an [MSI package][09]
256
− or with [WinGet][11] on a computer with an x64 processor.
257
−- If the value starts with `$Env:ProgramFiles\WindowsApps\`, PowerShell was installed as a
258
− [Microsoft Store package][10] or with [WinGet][11] on computer with an ARM processor.
281
+- If the value is `$Env:ProgramFiles\PowerShell\7`, PowerShell was probably installed using the
282
+ [MSI package][09]. You can verify this by looking for PowerShell in the **Programs and Features**
283
+ Control Panel.
284
+- If the value starts with `$Env:ProgramFiles\WindowsApps\`, PowerShell was installed using the
285
+ [MSIX package][10].
259286
- If the value is anything else, it's likely that PowerShell was installed as a [ZIP package][12].
260287
261
−If you installed via the MSI package, that information also appears in the
262
−**Programs and Features** Control Panel.
263
−
264288
To determine whether PowerShell may be upgraded with WinGet, run the following command:
265289
266290
```powershell
⋯ 7 unchanged lines
274298
winget upgrade --id Microsoft.PowerShell
275299
```
276300
301
+If available in the new version, WinGet uses the same package format (MSI or MSIX) that was used to
302
+install the current version of PowerShell. Alternatively, you can manually download and install
303
+the package you want.
304
+
277305
## Uninstall PowerShell 7
278306
279307
The process of uninstalling PowerShell 7 depends on the installation method you used.
⋯ 42 unchanged lines
322350
[10]: #msstore
323351
[11]: #winget
324352
[12]: #zip
325
−[13]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-arm64.msi
326
−[14]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-arm64.zip
327
−[15]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-x64.msi
328
−[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-x64.zip
329
−[22]: https://github.com/PowerShell/PowerShell/releases/latest
330
−[23]: https://www.microsoft.com/store/apps/9MZ1SNWT0N5D
331
−[24]: media/install-powershell-on-windows/powershell-start-menu.png
332
−[25]: microsoft-update-faq.yml
333
−[26]: PowerShell-Support-Lifecycle.md
353
+[13]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.15/PowerShell-7.4.15.msixbundle
354
+[14]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.6/PowerShell-7.5.6.msixbundle
355
+[15]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-arm64.msi
356
+[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-arm64.zip
357
+[17]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-x64.msi
358
+[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1-win-x64.zip
359
+[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/PowerShell-7.6.1.msixbundle
360
+
361
+[21]: https://github.com/PowerShell/PowerShell/releases/latest
362
+[22]: https://www.microsoft.com/store/apps/9MZ1SNWT0N5D
363
+[23]: media/install-powershell-on-windows/powershell-start-menu.png
364
+[24]: microsoft-update-faq.yml
365
+[25]: PowerShell-Support-Lifecycle.md
Microsoft's Markdown source from MicrosoftDocs/PowerShell-Docs, © Microsoft Corporation, under CC BY 4.0. Changed lines with up to 3 unchanged lines around each; ChangeIntel kept this copy 9 Oct 23:21 UTC. The commit date is when the source changed, which can be hours or days before Learn published it.