1
1
---
2
2
description : Information about installing PowerShell on Windows
3
- ms.date : 04/28 /2025
3
+ ms.date : 07/03 /2025
4
4
title : Installing PowerShell on Windows
5
5
---
6
6
# Installing PowerShell on Windows
@@ -41,7 +41,7 @@ winget search Microsoft.PowerShell
41
41
``` Output
42
42
Name Id Version Source
43
43
---------------------------------------------------------------
44
- PowerShell Microsoft.PowerShell 7.5.1 .0 winget
44
+ PowerShell Microsoft.PowerShell 7.5.2 .0 winget
45
45
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.4 winget
46
46
```
47
47
@@ -65,9 +65,9 @@ winget install --id Microsoft.PowerShell.Preview --source winget
65
65
To install PowerShell on Windows, use the following links to download the install package from
66
66
GitHub.
67
67
68
- - [ PowerShell-7.5.1 -win-x64.msi] [ 22 ]
69
- - [ PowerShell-7.5.1 -win-x86.msi] [ 24 ]
70
- - [ PowerShell-7.5.1 -win-arm64.msi] [ 20 ]
68
+ - [ PowerShell-7.5.2 -win-x64.msi] [ 22 ]
69
+ - [ PowerShell-7.5.2 -win-x86.msi] [ 24 ]
70
+ - [ PowerShell-7.5.2 -win-arm64.msi] [ 20 ]
71
71
72
72
Once downloaded, double-click the installer file and follow the prompts.
73
73
@@ -137,7 +137,7 @@ installation options:
137
137
The following example shows how to silently install PowerShell with all the install options enabled.
138
138
139
139
``` powershell
140
- msiexec.exe /package PowerShell-7.5.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
140
+ msiexec.exe /package PowerShell-7.5.2 -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
141
141
```
142
142
143
143
For a full list of command-line options for ` Msiexec.exe ` , see
@@ -148,9 +148,9 @@ For a full list of command-line options for `Msiexec.exe`, see
148
148
PowerShell binary ZIP archives are provided to enable advanced deployment scenarios. Download one of
149
149
the following ZIP archives from the [ current release] [ 18 ] page.
150
150
151
- - [ PowerShell-7.5.1 -win-x64.zip] [ 23 ]
152
- - [ PowerShell-7.5.1 -win-x86.zip] [ 25 ]
153
- - [ PowerShell-7.5.1 -win-arm64.zip] [ 21 ]
151
+ - [ PowerShell-7.5.2 -win-x64.zip] [ 23 ]
152
+ - [ PowerShell-7.5.2 -win-x86.zip] [ 25 ]
153
+ - [ PowerShell-7.5.2 -win-arm64.zip] [ 21 ]
154
154
155
155
Depending on how you download the file you may need to unblock the file using the ` Unblock-File `
156
156
cmdlet. Unzip the contents to the location of your choice and run ` pwsh.exe ` from there. Unlike
@@ -257,7 +257,7 @@ Windows 10 IoT Enterprise comes with Windows PowerShell, which we can use to dep
257
257
``` powershell
258
258
# Replace the placeholder information for the following variables:
259
259
$deviceip = '<device ip address'
260
- $zipfile = 'PowerShell-7.5.1 -win-arm64.zip'
260
+ $zipfile = 'PowerShell-7.5.2 -win-arm64.zip'
261
261
$downloadfolder = 'U:\Users\Administrator\Downloads' # The download location is local to the device.
262
262
# There should be enough space for the zip file and the unzipped contents.
263
263
@@ -270,10 +270,10 @@ Copy-Item $zipfile -Destination $downloadfolder -ToSession $S
270
270
#Connect to the device and expand the archive
271
271
Enter-PSSession $S
272
272
Set-Location U:\Users\Administrator\Downloads
273
- Expand-Archive .\PowerShell-7.5.1 -win-arm64.zip
273
+ Expand-Archive .\PowerShell-7.5.2 -win-arm64.zip
274
274
275
275
# Set up remoting to PowerShell 7
276
- Set-Location .\PowerShell-7.5.1 -win-arm64
276
+ Set-Location .\PowerShell-7.5.2 -win-arm64
277
277
# Be sure to use the -PowerShellHome parameter otherwise it tries to create a new
278
278
# endpoint with Windows PowerShell 5.1
279
279
.\Install-PowerShellRemoting.ps1 -PowerShellHome .
@@ -285,7 +285,7 @@ PowerShell has to restart WinRM. Now you can connect to PowerShell 7 endpoint on
285
285
``` powershell
286
286
287
287
# Be sure to use the -Configuration parameter. If you omit it, you connect to Windows PowerShell 5.1
288
- Enter-PSSession -ComputerName $deviceIp -Credential Administrator -Configuration PowerShell.7.5.1
288
+ Enter-PSSession -ComputerName $deviceIp -Credential Administrator -Configuration PowerShell.7.5.2
289
289
```
290
290
291
291
## Deploying on Windows 10 IoT Core
@@ -332,15 +332,15 @@ Deploy PowerShell to Nano Server using the following steps.
332
332
# Replace the placeholder information for the following variables:
333
333
$ipaddr = '<Nano Server IP address>'
334
334
$credential = Get-Credential # <An Administrator account on the system>
335
- $zipfile = 'PowerShell-7.5.1 -win-x64.zip'
335
+ $zipfile = 'PowerShell-7.5.2 -win-x64.zip'
336
336
# Connect to the built-in instance of Windows PowerShell
337
337
$session = New-PSSession -ComputerName $ipaddr -Credential $credential
338
338
# Copy the file to the Nano Server instance
339
339
Copy-Item $zipfile C:\ -ToSession $session
340
340
# Enter the interactive remote session
341
341
Enter-PSSession $session
342
342
# Extract the ZIP file
343
- Expand-Archive -Path C:\PowerShell-7.5.1 -win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
343
+ Expand-Archive -Path C:\PowerShell-7.5.2 -win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
344
344
```
345
345
346
346
## PowerShell remoting
@@ -380,11 +380,11 @@ can't support those methods.
380
380
[ 15 ] : #zip
381
381
[ 18 ] : https://github.com/PowerShell/PowerShell/releases/latest
382
382
[ 19 ] : https://github.com/ms-iot/iot-adk-addonkit/blob/master/Tools/IoTCoreImaging/Docs/Import-PSCoreRelease.md#Import-PSCoreRelease
383
- [ 20 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.1 /PowerShell-7.5.1 -win-arm64.msi
384
- [ 21 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.1 /PowerShell-7.5.1 -win-arm64.zip
385
- [ 22 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.1 /PowerShell-7.5.1 -win-x64.msi
386
- [ 23 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.1 /PowerShell-7.5.1 -win-x64.zip
387
- [ 24 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.1 /PowerShell-7.5.1 -win-x86.msi
388
- [ 25 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.1 /PowerShell-7.5.1 -win-x86.zip
383
+ [ 20 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.2 /PowerShell-7.5.2 -win-arm64.msi
384
+ [ 21 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.2 /PowerShell-7.5.2 -win-arm64.zip
385
+ [ 22 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.2 /PowerShell-7.5.2 -win-x64.msi
386
+ [ 23 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.2 /PowerShell-7.5.2 -win-x64.zip
387
+ [ 24 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.2 /PowerShell-7.5.2 -win-x86.msi
388
+ [ 25 ] : https://github.com/PowerShell/PowerShell/releases/download/v7.5.2 /PowerShell-7.5.2 -win-x86.zip
389
389
[ 27 ] : https://www.microsoft.com/store/apps/9MZ1SNWT0N5D
390
390
[ 28 ] : microsoft-update-faq.yml
0 commit comments