Skip to content

Commit

Permalink
(AB#265868) Update for June releases (7.4.3, 7.2.21) (#11197)
Browse files Browse the repository at this point in the history
This change:

- Updates the install docs and release notes for the June PowerShell
  releases (`v7.4.3` and `v7.2.21`).
- Fixes AB#265868
  • Loading branch information
michaeltlombardi committed Jun 19, 2024
1 parent f4fa34a commit ba3963c
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on Windows
ms.date: 01/12/2024
ms.date: 06/19/2024
title: Installing PowerShell on Windows
---
# Installing PowerShell on Windows
Expand Down Expand Up @@ -55,7 +55,7 @@ winget search Microsoft.PowerShell
```Output
Name Id Version Source
-----------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.4.2.0 winget
PowerShell Microsoft.PowerShell 7.4.3.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.5.0.3 winget
```

Expand All @@ -76,8 +76,8 @@ 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.4.2-win-x64.msi][28]
- [PowerShell-7.4.2-win-x86.msi][30]
- [PowerShell-7.4.3-win-x64.msi][28]
- [PowerShell-7.4.3-win-x86.msi][30]

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

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

```powershell
msiexec.exe /package PowerShell-7.4.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
msiexec.exe /package PowerShell-7.4.3-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 @@ -158,9 +158,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][23] page.

- [PowerShell-7.4.2-win-x64.zip][29]
- [PowerShell-7.4.2-win-x86.zip][31]
- [PowerShell-7.4.2-win-arm64.zip][27]
- [PowerShell-7.4.3-win-x64.zip][29]
- [PowerShell-7.4.3-win-x86.zip][31]
- [PowerShell-7.4.3-win-arm64.zip][27]

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 @@ -259,7 +259,7 @@ If there is an available upgrade, the output indicates the latest available vers

> [!NOTE]
> When upgrading, PowerShell won't upgrade from an LTS version to a non-LTS version. It only
> upgrades to the latest version of LTS, for example, from 7.2.3 to 7.2.19. To upgrade from an
> upgrades to the latest version of LTS, for example, from 7.2.3 to 7.2.21. To upgrade from an
> LTS release to a newer stable version or the next LTS, you need to install the new version with
> the MSI for that release.
>
Expand All @@ -273,7 +273,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.4.2-win-arm64.zip'
$zipfile = 'PowerShell-7.4.3-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 @@ -286,10 +286,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.4.2-win-arm64.zip
Expand-Archive .\PowerShell-7.4.3-win-arm64.zip
# Set up remoting to PowerShell 7
Set-Location .\PowerShell-7.4.2-win-arm64
Set-Location .\PowerShell-7.4.3-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 @@ -301,7 +301,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.4.2
Enter-PSSession -ComputerName $deviceIp -Credential Administrator -Configuration PowerShell.7.4.3
```

## Deploying on Windows 10 IoT Core
Expand Down Expand Up @@ -350,15 +350,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.4.2-win-x64.zip'
$zipfile = 'PowerShell-7.4.3-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.4.2-win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
Expand-Archive -Path C:\PowerShell-7.4.3-win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
```

If you want WSMan-based remoting, follow the instructions to create a remoting endpoint using the
Expand Down Expand Up @@ -413,11 +413,11 @@ can't support those methods.
[22]: https://aka.ms/powershell-release?tag=preview
[23]: https://aka.ms/powershell-release?tag=stable
[24]: https://github.com/ms-iot/iot-adk-addonkit/blob/master/Tools/IoTCoreImaging/Docs/Import-PSCoreRelease.md#Import-PSCoreRelease
[27]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/PowerShell-7.4.2-win-arm64.zip
[28]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/PowerShell-7.4.2-win-x64.msi
[29]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/PowerShell-7.4.2-win-x64.zip
[30]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/PowerShell-7.4.2-win-x86.msi
[31]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/PowerShell-7.4.2-win-x86.zip
[27]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/PowerShell-7.4.3-win-arm64.zip
[28]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/PowerShell-7.4.3-win-x64.msi
[29]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/PowerShell-7.4.3-win-x64.zip
[30]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/PowerShell-7.4.3-win-x86.msi
[31]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/PowerShell-7.4.3-win-x86.zip
[32]: https://www.microsoft.com/download/details.aspx?id=50410
[33]: https://www.microsoft.com/store/apps/9MZ1SNWT0N5D
[34]: microsoft-update-faq.yml
Expand Down
58 changes: 29 additions & 29 deletions reference/docs-conceptual/install/Installing-PowerShell-on-macOS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Information about installing PowerShell on macOS
ms.date: 05/16/2024
ms.date: 06/19/2024
title: Installing PowerShell on macOS
---

Expand Down Expand Up @@ -116,26 +116,26 @@ Starting with version 7.2, PowerShell supports the Apple M1 processor. Download
from the [releases][09] page onto your computer. The links to the current versions are:

- PowerShell 7.4
- x64 processors - [powershell-7.4.2-osx-x64.pkg][20]
- M1 processors - [powershell-7.4.2-osx-arm64.pkg][18]
- x64 processors - [powershell-7.4.3-osx-x64.pkg][20]
- M1 processors - [powershell-7.4.3-osx-arm64.pkg][18]
- PowerShell 7.2 (LTS)
- x64 processors - [powershell-7.2.19-osx-x64.pkg][16]
- M1 processors - [powershell-7.2.19-osx-arm64.pkg][14]
- x64 processors - [powershell-7.2.21-osx-x64.pkg][16]
- M1 processors - [powershell-7.2.21-osx-arm64.pkg][14]
- PowerShell 7.5-preview
- x64 processors - [powershell-7.5.0-preview.2-osx-x64.pkg][24]
- M1 processors - [powershell-7.5.0-preview.2-arm64.pkg][22]
- x64 processors - [powershell-7.5.0-preview.3-osx-x64.pkg][24]
- M1 processors - [powershell-7.5.0-preview.3-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.4.2-osx-x64.pkg -target /
sudo installer -pkg ./Downloads/powershell-7.4.3-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.4.2-osx-x64.pkg" cannot be opened because Apple cannot check it for malicious
> "powershell-7.4.3-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.4.2-osx-x64.pkg`. If you are using
1. Run `sudo xattr -rd com.apple.quarantine ./Downloads/powershell-7.4.3-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 @@ -188,21 +188,21 @@ Download the install package from the [releases][09] page onto your computer. Th
current versions are:

- PowerShell 7.4 (LTS)
- x64 processors - [powershell-7.4.2-osx-x64.tar.gz][21]
- M1 processors - [powershell-7.4.2-osx-arm64.tar.gz][19]
- x64 processors - [powershell-7.4.3-osx-x64.tar.gz][21]
- M1 processors - [powershell-7.4.3-osx-arm64.tar.gz][19]
- PowerShell 7.2 (LTS)
- x64 processors - [powershell-7.2.19-osx-x64.tar.gz][17]
- M1 processors - [powershell-7.2.19-osx-arm64.tar.gz][15]
- x64 processors - [powershell-7.2.21-osx-x64.tar.gz][17]
- M1 processors - [powershell-7.2.21-osx-arm64.tar.gz][15]
- PowerShell 7.5-preview
- x64 processors - [powershell-7.5.0-preview.2-osx-x64.tar.gz][25]
- M1 processors - [powershell-7.5.0-preview.2-osx-arm64.tar.gz][23]
- x64 processors - [powershell-7.5.0-preview.3-osx-x64.tar.gz][25]
- M1 processors - [powershell-7.5.0-preview.3-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.4.2/powershell-7.4.2-osx-x64.tar.gz
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-osx-x64.tar.gz

# Create the target folder where powershell is placed
sudo mkdir -p /usr/local/microsoft/powershell/7
Expand Down Expand Up @@ -281,16 +281,16 @@ support those methods.
[11]: https://docs.brew.sh/Manpage#link-ln-options-formula
[12]: https://github.com/Homebrew
[13]: https://github.com/Homebrew/homebrew-cask
[14]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.19/powershell-7.2.19-osx-arm64.pkg
[15]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.19/powershell-7.2.19-osx-arm64.tar.gz
[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.19/powershell-7.2.19-osx-x64.pkg
[17]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.19/powershell-7.2.19-osx-x64.tar.gz
[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-osx-arm64.pkg
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-osx-arm64.tar.gz
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-osx-x64.pkg
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-osx-x64.tar.gz
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.2/powershell-7.5.0-preview.2-osx-arm64.pkg
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.2/powershell-7.5.0-preview.2-osx-arm64.tar.gz
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.2/powershell-7.5.0-preview.2-osx-x64.pkg
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.2/powershell-7.5.0-preview.2-osx-x64.tar.gz
[14]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.21/powershell-7.2.21-osx-arm64.pkg
[15]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.21/powershell-7.2.21-osx-arm64.tar.gz
[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.21/powershell-7.2.21-osx-x64.pkg
[17]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.21/powershell-7.2.21-osx-x64.tar.gz
[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-osx-arm64.pkg
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-osx-arm64.tar.gz
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-osx-x64.pkg
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-osx-x64.tar.gz
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.3/powershell-7.5.0-preview.3-osx-arm64.pkg
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.3/powershell-7.5.0-preview.3-osx-arm64.tar.gz
[24]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.3/powershell-7.5.0-preview.3-osx-x64.pkg
[25]: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.3/powershell-7.5.0-preview.3-osx-x64.tar.gz
[26]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
8 changes: 4 additions & 4 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: 05/07/2024
ms.date: 06/19/2024
title: Community support for PowerShell on Linux
---
# Community support for PowerShell on Linux
Expand Down Expand Up @@ -70,9 +70,9 @@ information about installing these packages, see the [PowerShell][05] page in th
Download the tar.gz package from the [releases][08] page onto your Raspberry Pi computer. The links
to the current versions are:

- PowerShell 7.4.2 - latest LTS release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-linux-arm64.tar.gz`
- PowerShell 7.4.3 - latest LTS release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-linux-arm64.tar.gz`
- PowerShell 7.3.12 - latest stable release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.3.12/powershell-7.3.12-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.3.12/powershell-7.3.12-linux-arm64.tar.gz`
Expand Down
10 changes: 5 additions & 5 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: 05/16/2024
ms.date: 06/19/2024
title: Installing PowerShell on Alpine Linux
---
# Installing PowerShell on Alpine Linux
Expand All @@ -20,9 +20,9 @@ check the list of [Supported versions][02] below.
Installation on Alpine is based on downloading tar.gz package from the [releases][03] page. The URL
to the package depends on the version of PowerShell you want to install.

- PowerShell 7.4.2 - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-linux-musl-x64.tar.gz`
- PowerShell 7.2.19 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.19/powershell-7.2.19-linux-alpine-x64.tar.gz`
- PowerShell 7.5-preview.2 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.2/powershell-7.5.0-preview.2-linux-musl-x64.tar.gz`
- PowerShell 7.4.3 - `https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-linux-musl-x64.tar.gz`
- PowerShell 7.2.21 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.21/powershell-7.2.21-linux-alpine-x64.tar.gz`
- PowerShell 7.5-preview.3 - `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.3/powershell-7.5.0-preview.3-linux-musl-x64.tar.gz`

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

Expand All @@ -47,7 +47,7 @@ sudo apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
lttng-ust

# Download the powershell '.tar.gz' archive
curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-linux-musl-x64.tar.gz -o /tmp/powershell.tar.gz
curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-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
14 changes: 7 additions & 7 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: 05/16/2024
ms.date: 06/19/2024
title: Installing PowerShell on Debian
---
# Installing PowerShell on Debian
Expand Down Expand Up @@ -70,11 +70,11 @@ package from the [releases][02] page onto your Debian machine.
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.2/powershell_7.4.2-1.deb_amd64.deb`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell_7.4.3-1.deb_amd64.deb`
- PowerShell 7.2 (LTS) universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.19/powershell_7.2.19-1.deb_amd64.deb`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.21/powershell_7.2.21-1.deb_amd64.deb`
- PowerShell 7.5-preview universal package for supported versions of Debian
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.2/powershell-preview_7.5.0-preview.2-1.deb_amd64.deb`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.3/powershell-preview_7.5.0-preview.3-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.4.2/powershell_7.4.2-1.deb_amd64.deb
wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell_7.4.3-1.deb_amd64.deb

###################################
# Install the PowerShell package
sudo dpkg -i powershell_7.4.2-1.deb_amd64.deb
sudo dpkg -i powershell_7.4.3-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.4.2-1.deb_amd64.deb
rm powershell_7.4.3-1.deb_amd64.deb

# Start PowerShell
pwsh
Expand Down
Loading

0 comments on commit ba3963c

Please sign in to comment.