Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Windows
ms.date: 03/13/2025
ms.date: 04/28/2025
title: Installing PowerShell on Windows
---
# Installing PowerShell on Windows
Expand Down Expand Up @@ -41,8 +41,8 @@ winget search Microsoft.PowerShell
```Output
Name Id Version Source
---------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.5.0.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.2 winget
PowerShell Microsoft.PowerShell 7.5.1.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.4 winget
```

Install PowerShell or PowerShell Preview using the `id` parameter
Expand All @@ -65,9 +65,9 @@ winget install --id Microsoft.PowerShell.Preview --source winget
To install PowerShell on Windows, use the following links to download the install package from
GitHub.

- [PowerShell-7.5.0-win-x64.msi][22]
- [PowerShell-7.5.0-win-x86.msi][24]
- [PowerShell-7.5.0-win-arm64.msi][20]
- [PowerShell-7.5.1-win-x64.msi][22]
- [PowerShell-7.5.1-win-x86.msi][24]
- [PowerShell-7.5.1-win-arm64.msi][20]

Once downloaded, double-click the installer file and follow the prompts.

Expand Down Expand Up @@ -137,7 +137,7 @@ installation options:
The following example shows how to silently install PowerShell with all the install options enabled.

```powershell
msiexec.exe /package PowerShell-7.5.0-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
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
```

For a full list of command-line options for `Msiexec.exe`, see
Expand All @@ -148,9 +148,9 @@ For a full list of command-line options for `Msiexec.exe`, see
PowerShell binary ZIP archives are provided to enable advanced deployment scenarios. Download one of
the following ZIP archives from the [current release][18] page.

- [PowerShell-7.5.0-win-x64.zip][23]
- [PowerShell-7.5.0-win-x86.zip][25]
- [PowerShell-7.5.0-win-arm64.zip][21]
- [PowerShell-7.5.1-win-x64.zip][23]
- [PowerShell-7.5.1-win-x86.zip][25]
- [PowerShell-7.5.1-win-arm64.zip][21]

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.exe` from there. Unlike
Expand Down Expand Up @@ -257,7 +257,7 @@ Windows 10 IoT Enterprise comes with Windows PowerShell, which we can use to dep
```powershell
# Replace the placeholder information for the following variables:
$deviceip = '<device ip address'
$zipfile = 'PowerShell-7.5.0-win-arm64.zip'
$zipfile = 'PowerShell-7.5.1-win-arm64.zip'
$downloadfolder = 'U:\Users\Administrator\Downloads' # The download location is local to the device.
# There should be enough space for the zip file and the unzipped contents.

Expand All @@ -270,10 +270,10 @@ Copy-Item $zipfile -Destination $downloadfolder -ToSession $S
#Connect to the device and expand the archive
Enter-PSSession $S
Set-Location U:\Users\Administrator\Downloads
Expand-Archive .\PowerShell-7.5.0-win-arm64.zip
Expand-Archive .\PowerShell-7.5.1-win-arm64.zip

# Set up remoting to PowerShell 7
Set-Location .\PowerShell-7.5.0-win-arm64
Set-Location .\PowerShell-7.5.1-win-arm64
# Be sure to use the -PowerShellHome parameter otherwise it tries to create a new
# endpoint with Windows PowerShell 5.1
.\Install-PowerShellRemoting.ps1 -PowerShellHome .
Expand All @@ -285,7 +285,7 @@ PowerShell has to restart WinRM. Now you can connect to PowerShell 7 endpoint on
```powershell

# Be sure to use the -Configuration parameter. If you omit it, you connect to Windows PowerShell 5.1
Enter-PSSession -ComputerName $deviceIp -Credential Administrator -Configuration PowerShell.7.5.0
Enter-PSSession -ComputerName $deviceIp -Credential Administrator -Configuration PowerShell.7.5.1
```

## Deploying on Windows 10 IoT Core
Expand Down Expand Up @@ -332,15 +332,15 @@ Deploy PowerShell to Nano Server using the following steps.
# Replace the placeholder information for the following variables:
$ipaddr = '<Nano Server IP address>'
$credential = Get-Credential # <An Administrator account on the system>
$zipfile = 'PowerShell-7.5.0-win-x64.zip'
$zipfile = 'PowerShell-7.5.1-win-x64.zip'
# Connect to the built-in instance of Windows PowerShell
$session = New-PSSession -ComputerName $ipaddr -Credential $credential
# Copy the file to the Nano Server instance
Copy-Item $zipfile C:\ -ToSession $session
# Enter the interactive remote session
Enter-PSSession $session
# Extract the ZIP file
Expand-Archive -Path C:\PowerShell-7.5.0-win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
Expand-Archive -Path C:\PowerShell-7.5.1-win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
```

## PowerShell remoting
Expand Down Expand Up @@ -380,11 +380,11 @@ can't support those methods.
[15]: #zip
[18]: https://github.com/PowerShell/PowerShell/releases/latest
[19]: https://github.com/ms-iot/iot-adk-addonkit/blob/master/Tools/IoTCoreImaging/Docs/Import-PSCoreRelease.md#Import-PSCoreRelease
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/PowerShell-7.5.0-win-arm64.msi
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/PowerShell-7.5.0-win-arm64.zip
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/PowerShell-7.5.0-win-x64.msi
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/PowerShell-7.5.0-win-x64.zip
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/PowerShell-7.5.0-win-x86.msi
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/PowerShell-7.5.0-win-x86.zip
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/PowerShell-7.5.1-win-arm64.msi
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/PowerShell-7.5.1-win-arm64.zip
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/PowerShell-7.5.1-win-x64.msi
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/PowerShell-7.5.1-win-x64.zip
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/PowerShell-7.5.1-win-x86.msi
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/PowerShell-7.5.1-win-x86.zip
[27]: https://www.microsoft.com/store/apps/9MZ1SNWT0N5D
[28]: microsoft-update-faq.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on macOS
ms.date: 01/29/2025
ms.date: 04/28/2025
title: Installing PowerShell on macOS
---

Expand Down Expand Up @@ -122,20 +122,20 @@ are:
- x64 processors - [powershell-7.4.7-osx-x64.pkg][20]
- Arm64 processors - [powershell-7.4.7-osx-arm64.pkg][18]
- PowerShell 7.5
- x64 processors - [powershell-7.5.0-osx-x64.pkg][24]
- Arm64 processors - [powershell-7.5.0-arm64.pkg][22]
- x64 processors - [powershell-7.5.1-osx-x64.pkg][24]
- Arm64 processors - [powershell-7.5.1-arm64.pkg][22]

You can double-click the file and follow the prompts, or install it from the terminal using the
following commands. Change the name of the file to match the file you downloaded.

```sh
sudo installer -pkg ./Downloads/powershell-7.5.0-osx-x64.pkg -target /
sudo installer -pkg ./Downloads/powershell-7.5.1-osx-x64.pkg -target /
```

If you are running on macOS Big Sur 11.5 or higher you may receive the following error message
when installing the package:

> "powershell-7.5.0-osx-x64.pkg" cannot be opened because Apple cannot check it for malicious
> "powershell-7.5.1-osx-x64.pkg" cannot be opened because Apple cannot check it for malicious
> software.

There are two ways to work around this issue:
Expand All @@ -148,7 +148,7 @@ Using the Finder

From the command line

1. Run `sudo xattr -rd com.apple.quarantine ./Downloads/powershell-7.5.0-osx-x64.pkg`. If you are using
1. Run `sudo xattr -rd com.apple.quarantine ./Downloads/powershell-7.5.1-osx-x64.pkg`. If you are using
PowerShell 7 or higher, you can use the `Unblock-File` cmdlet. Include the full path to the
`.pkg` file.
1. Install the package as you normally would.
Expand Down Expand Up @@ -191,15 +191,15 @@ current versions are:
- x64 processors - [powershell-7.4.7-osx-x64.tar.gz][21]
- Arm64 processors - [powershell-7.4.7-osx-arm64.tar.gz][19]
- PowerShell 7.5-preview
- x64 processors - [powershell-7.5.0-osx-x64.tar.gz][25]
- Arm64 processors - [powershell-7.5.0-osx-arm64.tar.gz][23]
- x64 processors - [powershell-7.5.1-osx-x64.tar.gz][25]
- Arm64 processors - [powershell-7.5.1-osx-arm64.tar.gz][23]

Use the following commands to install PowerShell from the binary archive. Change the download URL to
match the version you want to install.

```sh
# Download the powershell '.tar.gz' archive
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-osx-x64.tar.gz
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-osx-x64.tar.gz

# Create the target folder where powershell is placed
sudo mkdir -p /usr/local/microsoft/powershell/7
Expand Down Expand Up @@ -282,8 +282,8 @@ support those methods.
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-osx-arm64.tar.gz
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-osx-x64.pkg
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-osx-x64.tar.gz
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-osx-arm64.pkg
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-osx-arm64.tar.gz
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-osx-x64.pkg
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-osx-x64.tar.gz
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-osx-arm64.pkg
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-osx-arm64.tar.gz
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-osx-x64.pkg
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-osx-x64.tar.gz
[26]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
6 changes: 3 additions & 3 deletions reference/docs-conceptual/install/community-support.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: PowerShell can run on Linux distributions that aren't officially supported by Microsoft.
ms.date: 01/27/2025
ms.date: 04/28/2025
title: Community support for PowerShell on Linux
---
# Community support for PowerShell on Linux
Expand Down Expand Up @@ -81,8 +81,8 @@ to the current versions are:
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-linux-arm64.tar.gz`
- PowerShell 7.5 - latest stable release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-linux-arm64.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-linux-arm64.tar.gz`

Use the following shell commands to download and install the package. This script detects whether
you're running a 32-bit or 64-bit OS and installs the latest stable version of PowerShell for that
Expand Down
6 changes: 3 additions & 3 deletions reference/docs-conceptual/install/install-alpine.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Alpine Linux
ms.date: 01/27/2025
ms.date: 04/28/2025
title: Installing PowerShell on Alpine Linux
---
# Installing PowerShell on Alpine Linux
Expand All @@ -23,7 +23,7 @@ Installation on Alpine is based on downloading tar.gz package from the [releases
to the package depends on the version of PowerShell you want to install.

- PowerShell 7.4 - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-linux-musl-x64.tar.gz`
- PowerShell 7.5 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-linux-musl-x64.tar.gz`
- PowerShell 7.5 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-linux-musl-x64.tar.gz`

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

Expand All @@ -49,7 +49,7 @@ apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
openssh-client \

# Download the powershell '.tar.gz' archive
curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-linux-musl-x64.tar.gz -o /tmp/powershell.tar.gz
curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-linux-musl-x64.tar.gz -o /tmp/powershell.tar.gz

# Create the target folder where powershell will be placed
sudo mkdir -p /opt/microsoft/powershell/7
Expand Down
10 changes: 5 additions & 5 deletions reference/docs-conceptual/install/install-debian.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Debian Linux
ms.date: 01/29/2025
ms.date: 04/28/2025
title: Installing PowerShell on Debian
---
# Installing PowerShell on Debian
Expand Down Expand Up @@ -74,7 +74,7 @@ The link to the current version is:
- PowerShell 7.4 (LTS) universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell_7.4.7-1.deb_amd64.deb`
- PowerShell 7.5 universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell_7.5.0-1.deb_amd64.deb`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell_7.5.1-1.deb_amd64.deb`

The following shell script downloads and installs the current release of PowerShell. You can
change the URL to download the version of PowerShell that you want to install.
Expand All @@ -90,17 +90,17 @@ sudo apt-get update
sudo apt-get install -y wget

# Download the PowerShell package file
wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell_7.5.0-1.deb_amd64.deb
wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell_7.5.1-1.deb_amd64.deb

###################################
# Install the PowerShell package
sudo dpkg -i powershell_7.5.0-1.deb_amd64.deb
sudo dpkg -i powershell_7.5.1-1.deb_amd64.deb

# Resolve missing dependencies and finish the install (if necessary)
sudo apt-get install -f

# Delete the downloaded package file
rm powershell_7.5.0-1.deb_amd64.deb
rm powershell_7.5.1-1.deb_amd64.deb

# Start PowerShell
pwsh
Expand Down
10 changes: 5 additions & 5 deletions reference/docs-conceptual/install/install-other-linux.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on various Linux distributions
ms.date: 01/27/2025
ms.date: 04/28/2025
title: Alternate ways to install PowerShell on Linux
---
# Alternate ways to install PowerShell on Linux
Expand Down Expand Up @@ -132,16 +132,16 @@ archive.
The following example shows the steps for installing the x64 binary archive. You must choose the
correct binary archive that matches the processor type for your platform.

- `powershell-7.5.0-linux-arm32.tar.gz`
- `powershell-7.5.0-linux-arm64.tar.gz`
- `powershell-7.5.0-linux-x64.tar.gz`
- `powershell-7.5.1-linux-arm32.tar.gz`
- `powershell-7.5.1-linux-arm64.tar.gz`
- `powershell-7.5.1-linux-x64.tar.gz`

Use the following shell commands to download and install PowerShell from the `tar.gz` binary
archive. Change the URL to match the version of PowerShell you want to install.

```sh
# Download the powershell '.tar.gz' archive
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-linux-x64.tar.gz
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-linux-x64.tar.gz

# Create the target folder where powershell will be placed
sudo mkdir -p /opt/microsoft/powershell/7
Expand Down
8 changes: 4 additions & 4 deletions reference/docs-conceptual/install/install-rhel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Red Hat Enterprise Linux (RHEL)
ms.date: 01/29/2025
ms.date: 04/28/2025
title: Installing PowerShell on Red Hat Enterprise Linux (RHEL)
---
# Installing PowerShell on Red Hat Enterprise Linux (RHEL)
Expand Down Expand Up @@ -68,16 +68,16 @@ The link to the current version is:

- PowerShell 7.4.7 universal package for supported versions of RHEL
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-1.rh.x86_64.rpm`
- PowerShell 7.5.0 universal package for supported versions of RHEL
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-1.rh.x86_64.rpm`
- PowerShell 7.5.1 universal package for supported versions of RHEL
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-1.rh.x86_64.rpm`

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

On RHEL 8 or 9:

```sh
sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-7.5.0-1.rh.x86_64.rpm
sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-7.5.1-1.rh.x86_64.rpm
```

## Uninstall PowerShell
Expand Down
10 changes: 5 additions & 5 deletions reference/docs-conceptual/install/install-ubuntu.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Ubuntu
ms.date: 01/29/2025
ms.date: 04/28/2025
title: Installing PowerShell on Ubuntu
---
# Installing PowerShell on Ubuntu
Expand Down Expand Up @@ -86,7 +86,7 @@ The link to the current version is:
- PowerShell 7.4 (LTS) universal package for supported versions of Ubuntu
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell_7.4.7-1.deb_amd64.deb`
- PowerShell 7.5 universal package for supported versions of Ubuntu
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell-preview_7.5.0-1.deb_amd64.deb`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell-preview_7.5.1-1.deb_amd64.deb`

The following shell script downloads and installs the current preview release of PowerShell. You can
change the URL to download the version of PowerShell that you want to install.
Expand All @@ -102,17 +102,17 @@ sudo apt-get update
sudo apt-get install -y wget

# Download the PowerShell package file
wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/powershell_7.5.0-1.deb_amd64.deb
wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.1/powershell_7.5.1-1.deb_amd64.deb

###################################
# Install the PowerShell package
sudo dpkg -i powershell_7.5.0-1.deb_amd64.deb
sudo dpkg -i powershell_7.5.1-1.deb_amd64.deb

# Resolve missing dependencies and finish the install (if necessary)
sudo apt-get install -f

# Delete the downloaded package file
rm powershell_7.5.0-1.deb_amd64.deb
rm powershell_7.5.1-1.deb_amd64.deb

# Start PowerShell Preview
pwsh
Expand Down