Skip to content

Commit 202ebf5

Browse files
Merge pull request #12527 from MicrosoftDocs/main
Auto Publish – main to live - 2025-11-19 23:00 UTC
2 parents 4795d2d + cca5019 commit 202ebf5

12 files changed

+636
-582
lines changed

redir/.openpublishing.redirection.json

Lines changed: 153 additions & 133 deletions
Large diffs are not rendered by default.

reference/docs-conceptual/install/Installing-PowerShell-on-Windows.md

Lines changed: 0 additions & 390 deletions
This file was deleted.

reference/docs-conceptual/install/install-alpine.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
2-
description: Information about installing PowerShell on Alpine Linux
3-
ms.date: 10/16/2025
4-
title: Installing PowerShell on Alpine Linux
2+
description: How to install PowerShell on Alpine Linux
3+
ms.date: 11/19/2025
4+
title: Install PowerShell on Alpine Linux
55
---
6-
# Installing PowerShell on Alpine Linux
6+
# Install PowerShell on Alpine Linux
77

88
All packages are available on our GitHub [releases][03] page. After the package is installed, run
99
`pwsh` from a terminal. Run `pwsh-preview` if you installed a preview release. Before installing,
1010
check the list of [Supported versions][02] below.
1111

12-
> [!NOTE]
13-
> PowerShell 7.4 is an in-place upgrade that removes previous versions of PowerShell 7. Preview
14-
> versions of PowerShell can be installed side-by-side with other versions of PowerShell. If you
15-
> need to run PowerShell 7.4 side-by-side with a previous version, reinstall the previous version
16-
> using the [binary archive][05] method.
12+
Newer versions of PowerShell 7 replace existing previous versions of PowerShell 7. Preview versions
13+
of PowerShell can be installed side-by-side with other versions of PowerShell. Newer preview
14+
versions replace existing previous preview versions. If you need to run PowerShell 7.5 side-by-side
15+
with a previous version, reinstall the previous version using the [binary archive][05] method.
1716

1817
[!INCLUDE [Latest version](../../includes/latest-install.md)]
1918

@@ -24,6 +23,7 @@ to the package depends on the version of PowerShell you want to install.
2423

2524
- PowerShell 7.4 - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell-7.4.13-linux-musl-x64.tar.gz`
2625
- PowerShell 7.5 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell-7.5.4-linux-musl-x64.tar.gz`
26+
- PowerShell 7.6-preview - `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.5/powershell-7.6.0-preview.5-linux-musl-x64.tar.gz`
2727

2828
Then, in the terminal, execute the following shell commands to install PowerShell 7.4:
2929

reference/docs-conceptual/install/install-debian.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
2-
description: Information about installing PowerShell on Debian Linux
3-
ms.date: 10/16/2025
4-
title: Installing PowerShell on Debian
2+
description: How to install PowerShell on Debian Linux
3+
ms.date: 11/19/2025
4+
title: Install PowerShell on Debian
55
---
6-
# Installing PowerShell on Debian
6+
# Install PowerShell on Debian
77

88
All packages are available on our GitHub [releases][02] page. Before installing, check the list of
99
[Supported versions][01] below. After the package is installed, run `pwsh` from a terminal. Run
1010
`pwsh-lts` if you installed a preview release.
1111

12-
> [!NOTE]
13-
> PowerShell 7.4 is an in-place upgrade that removes previous versions of PowerShell 7. Preview
14-
> versions of PowerShell can be installed side-by-side with other versions of PowerShell. If you
15-
> need to run PowerShell 7.4 side-by-side with a previous version, reinstall the previous version
16-
> using the [binary archive][05] method.
12+
Newer versions of PowerShell 7 replace existing previous versions of PowerShell 7. Preview versions
13+
of PowerShell can be installed side-by-side with other versions of PowerShell. Newer preview
14+
versions replace existing previous preview versions. If you need to run PowerShell 7.5 side-by-side
15+
with a previous version, reinstall the previous version using the [binary archive][05] method.
1716

1817
Debian uses APT (Advanced Package Tool) as a package manager.
1918

@@ -75,6 +74,8 @@ The link to the current version is:
7574
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.13/powershell_7.4.13-1.deb_amd64.deb`
7675
- PowerShell 7.5 universal package for supported versions of Debian
7776
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/powershell_7.5.4-1.deb_amd64.deb`
77+
- PowerShell 7.6-preview universal package for supported versions of Debian
78+
- `https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.5/powershell-preview_7.6.0-preview.5-1.deb_amd64.deb`
7879

7980
The following shell script downloads and installs the current release of PowerShell. You can
8081
change the URL to download the version of PowerShell that you want to install.

reference/docs-conceptual/install/Installing-PowerShell-on-Linux.md renamed to reference/docs-conceptual/install/install-powershell-on-linux.md

File renamed without changes.

reference/docs-conceptual/install/Installing-PowerShell-on-macOS.md renamed to reference/docs-conceptual/install/install-powershell-on-macos.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
2-
description: Information about installing PowerShell on macOS
3-
ms.date: 10/23/2025
4-
title: Installing PowerShell on macOS
2+
description: How to install PowerShell on macOS
3+
ms.date: 11/19/2025
4+
title: Install PowerShell on macOS
55
---
66

7-
# Installing PowerShell on macOS
7+
# Install PowerShell on macOS
88

99
PowerShell 7 or higher requires macOS 13 and higher. All packages are available on the GitHub
1010
[releases][11] page for PowerShell. After the package is installed, run `pwsh` from a terminal.
1111
Before installing, check the list of [Supported versions][08].
1212

13-
> [!NOTE]
14-
> PowerShell 7.4 is an in-place upgrade that removes previous versions of PowerShell 7. You can
15-
> install preview versions of PowerShell side-by-side with other versions of PowerShell. If you need
16-
> to run PowerShell 7.4 side-by-side with a previous version, reinstall the previous version using
17-
> the [binary archive][03] method.
13+
Newer versions of PowerShell 7 replace existing previous versions of PowerShell 7. Preview versions
14+
of PowerShell can be installed side-by-side with other versions of PowerShell. Newer preview
15+
versions replace existing previous preview versions.If you need to run PowerShell 7.5 side-by-side
16+
with a previous version, reinstall the previous version using the [binary archive][03] method.
1817

1918
[!INCLUDE [Latest version](../../includes/latest-install.md)]
2019

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
description: How to install PowerShell on Windows IoT and Nano Server.
3+
ms.date: 11/19/2025
4+
title: Install PowerShell on Windows IoT and Nano Server
5+
---
6+
# Install PowerShell on Windows IoT and Nano Server
7+
8+
This article describes how to install PowerShell on Windows IoT and Nano Server.
9+
10+
## Deploy on Windows 11 IoT
11+
12+
Windows 11 IoT Enterprise comes with Windows PowerShell, which is used to deploy PowerShell 7.
13+
14+
```powershell
15+
# Replace the placeholder information for the following variables:
16+
$deviceip = '<device ip address>'
17+
$zipfile = 'PowerShell-7.5.4-win-arm64.zip'
18+
$downloadfolder = 'U:\Users\Administrator\Downloads'
19+
# The download location is local to the device.
20+
# There should be enough space for the zip file and the unzipped contents.
21+
22+
# Create PowerShell session to target device
23+
Set-Item -Path WSMan:\localhost\Client\TrustedHosts $deviceip
24+
$S = New-PSSession -ComputerName $deviceIp -Credential Administrator
25+
# Copy the ZIP package to the device
26+
Copy-Item $zipfile -Destination $downloadfolder -ToSession $S
27+
28+
#Connect to the device and expand the archive
29+
Enter-PSSession $S
30+
Set-Location U:\Users\Administrator\Downloads
31+
Expand-Archive .\PowerShell-7.5.4-win-arm64.zip
32+
33+
# Set up remoting to PowerShell 7
34+
Set-Location .\PowerShell-7.5.4-win-arm64
35+
# Be sure to use the -PowerShellHome parameter otherwise it tries to create a new
36+
# endpoint with Windows PowerShell 5.1
37+
.\Install-PowerShellRemoting.ps1 -PowerShellHome .
38+
```
39+
40+
When you set up PowerShell Remoting you get an error message and are disconnected from the device.
41+
PowerShell has to restart WinRM. Now you can connect to PowerShell 7 endpoint on device.
42+
43+
```powershell
44+
45+
# Be sure to use the -Configuration parameter. If you omit it, you connect to Windows PowerShell 5.1
46+
Enter-PSSession -ComputerName $deviceIp -Credential Administrator -Configuration PowerShell.7.5.4
47+
```
48+
49+
Windows 11 IoT Core adds Windows PowerShell when you include _IOT_POWERSHELL_ feature. Use Windows
50+
PowerShell to deploy PowerShell 7 using the same steps as Windows 11 IoT Enterprise.
51+
52+
To add the latest PowerShell in the shipping image, use the [Import-PSCoreRelease][02] command to
53+
include the package in the workarea and add the _OPENSRC_POWERSHELL_ feature to your image.
54+
55+
> [!NOTE]
56+
> For ARM64 architecture, Windows PowerShell isn't added when you include _IOT_POWERSHELL_. So the
57+
> zip based install doesn't work. You need to use `Import-PSCoreRelease` command to add it in
58+
> the image.
59+
60+
## Deploying on Nano Server
61+
62+
These instructions assume that the Nano Server is a "headless" OS that has a version of PowerShell
63+
already running on it. For more information, see the [Nano Server Image Builder][01]
64+
documentation.
65+
66+
PowerShell binaries can be deployed using two different methods.
67+
68+
1. Offline - Mount the Nano Server VHD and unzip the contents of the zip file to your chosen
69+
location within the mounted image.
70+
1. Online - Transfer the zip file over a PowerShell Session and unzip it in your chosen location.
71+
72+
In both cases, you need the [Windows x64 ZIP release package][03]. Run the commands within an
73+
"Administrator" instance of PowerShell.
74+
75+
### Offline Deployment of PowerShell
76+
77+
1. Use your favorite zip utility to unzip the package to a directory within the mounted Nano Server
78+
image.
79+
1. Unmount the image and boot it.
80+
1. Connect to the built-in instance of Windows PowerShell.
81+
82+
### Online Deployment of PowerShell
83+
84+
Deploy PowerShell to Nano Server using the following steps.
85+
86+
```powershell
87+
# Replace the placeholder information for the following variables:
88+
$ipaddr = '<Nano Server IP address>'
89+
$credential = Get-Credential # <An Administrator account on the system>
90+
$zipfile = 'PowerShell-7.5.4-win-x64.zip'
91+
# Connect to the built-in instance of Windows PowerShell
92+
$session = New-PSSession -ComputerName $ipaddr -Credential $credential
93+
# Copy the file to the Nano Server instance
94+
Copy-Item $zipfile C:\ -ToSession $session
95+
# Enter the interactive remote session
96+
Enter-PSSession $session
97+
# Extract the ZIP file
98+
Expand-Archive -Path C:\PowerShell-7.5.4-win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
99+
```
100+
101+
## Supported versions of Windows
102+
103+
[!INCLUDE [Windows support](../../includes/windows-support.md)]
104+
105+
You can check the version that you are using by running `winver.exe`.
106+
107+
## Installation support
108+
109+
Microsoft supports the installation methods in this document. There may be other third-party methods
110+
of installation available from other sources. While those tools and methods may work, Microsoft
111+
can't support those methods.
112+
113+
[!INCLUDE [Latest version](../../includes/latest-install.md)]
114+
115+
<!-- link references -->
116+
[01]: /windows-server/get-started/deploy-nano-server
117+
[02]: https://github.com/ms-iot/iot-adk-addonkit/blob/master/Tools/IoTCoreImaging/Docs/Import-PSCoreRelease.md#Import-PSCoreRelease
118+
[03]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/PowerShell-7.5.4-win-x64.zip

0 commit comments

Comments
 (0)