Skip to content

Commit

Permalink
(MAINT) Update PowerShell versions for latest stable
Browse files Browse the repository at this point in the history
This change updates the version strings in the install documentation to reflect
the new `v7.3.7` and `v7.2.14` releases.
  • Loading branch information
michaeltlombardi committed Sep 19, 2023
1 parent fd44b34 commit 41d95d1
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ winget search Microsoft.PowerShell
```Output
Name Id Version Source
--------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.3.6.0 winget
PowerShell Microsoft.PowerShell 7.3.7.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.3 winget
```

Expand All @@ -72,8 +72,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.3.6-win-x64.msi][28]
- [PowerShell-7.3.6-win-x86.msi][30]
- [PowerShell-7.3.7-win-x64.msi][28]
- [PowerShell-7.3.7-win-x86.msi][30]

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

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

```powershell
msiexec.exe /package PowerShell-7.3.6-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.3.7-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 @@ -149,9 +149,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.3.6-win-x64.zip][29]
- [PowerShell-7.3.6-win-x86.zip][31]
- [PowerShell-7.3.6-win-arm64.zip][27]
- [PowerShell-7.3.7-win-x64.zip][29]
- [PowerShell-7.3.7-win-x86.zip][31]
- [PowerShell-7.3.7-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 @@ -233,7 +233,7 @@ information in this article. If you installed via the MSI package, that informat

> [!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.13. To upgrade from an
> upgrades to the latest version of LTS, for example, from 7.2.3 to 7.2.14. 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 @@ -247,7 +247,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.3.6-win-arm64.zip'
$zipfile = 'PowerShell-7.3.7-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 @@ -260,10 +260,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.3.6-win-arm64.zip
Expand-Archive .\PowerShell-7.3.7-win-arm64.zip
# Set up remoting to PowerShell 7
Set-Location .\PowerShell-7.3.6-win-arm64
Set-Location .\PowerShell-7.3.7-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 @@ -275,7 +275,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.3.6
Enter-PSSession -ComputerName $deviceIp -Credential Administrator -Configuration PowerShell.7.3.7
```

## Deploying on Windows 10 IoT Core
Expand Down Expand Up @@ -324,15 +324,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.3.6-win-x64.zip'
$zipfile = 'PowerShell-7.3.7-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.3.6-win-x64.zip -DestinationPath 'C:\Program Files\PowerShell 7'
Expand-Archive -Path C:\PowerShell-7.3.7-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 @@ -387,11 +387,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.3.6/PowerShell-7.3.6-win-arm64.zip
[28]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/PowerShell-7.3.6-win-x64.msi
[29]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/PowerShell-7.3.6-win-x64.zip
[30]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/PowerShell-7.3.6-win-x86.msi
[31]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/PowerShell-7.3.6-win-x86.zip
[27]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/PowerShell-7.3.7-win-arm64.zip
[28]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/PowerShell-7.3.7-win-x64.msi
[29]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/PowerShell-7.3.7-win-x64.zip
[30]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/PowerShell-7.3.7-win-x86.msi
[31]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/PowerShell-7.3.7-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
60 changes: 30 additions & 30 deletions reference/docs-conceptual/install/Installing-PowerShell-on-macOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,24 +121,24 @@ brew upgrade powershell
Starting with version 7.2, PowerShell supports the Apple M1 processor. Download the install package
from the [releases][10] page onto your computer. The links to the current versions are:

- PowerShell 7.3.6
- x64 processors - [powershell-7.3.6-osx-x64.pkg][22]
- M1 processors - [powershell-7.3.6-osx-arm64.pkg][20]
- PowerShell 7.2.13
- x64 processors - [powershell-7.2.13-osx-x64.pkg][18]
- M1 processors - [powershell-7.2.13-osx-arm64.pkg][16]
- PowerShell 7.3.7
- x64 processors - [powershell-7.3.7-osx-x64.pkg][22]
- M1 processors - [powershell-7.3.7-osx-arm64.pkg][20]
- PowerShell 7.2.14
- x64 processors - [powershell-7.2.14-osx-x64.pkg][18]
- M1 processors - [powershell-7.2.14-osx-arm64.pkg][16]

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 powershell-7.3.6-osx-x64.pkg -target /
sudo installer -pkg powershell-7.3.7-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.3.6-osx-x64.pkg" cannot be opened because Apple cannot check it for malicious
> "powershell-7.3.7-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 @@ -151,7 +151,7 @@ Using the Finder

From the command line

1. Run `sudo xattr -rd com.apple.quarantine powershell-7.3.6-osx-x64.pkg`. Include the full path to
1. Run `sudo xattr -rd com.apple.quarantine powershell-7.3.7-osx-x64.pkg`. Include the full path to
the `.pkg` file.
1. Install the package as you normally would.

Expand Down Expand Up @@ -189,31 +189,31 @@ dependencies.
Download the install package from the [releases][10] page onto your computer. The links to the
current versions are:

- PowerShell 7.3.6
- x64 processors - [powershell-7.3.6-osx-x64.tar.gz][23]
- M1 processors - [powershell-7.3.6-osx-arm64.tar.gz][21]
- PowerShell 7.2.13
- x64 processors - [powershell-7.2.13-osx-x64.tar.gz][19]
- M1 processors - [powershell-7.2.13-osx-arm64.tar.gz][17]
- PowerShell 7.3.7
- x64 processors - [powershell-7.3.7-osx-x64.tar.gz][23]
- M1 processors - [powershell-7.3.7-osx-arm64.tar.gz][21]
- PowerShell 7.2.14
- x64 processors - [powershell-7.2.14-osx-x64.tar.gz][19]
- M1 processors - [powershell-7.2.14-osx-arm64.tar.gz][17]

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.3.6/powershell-7.3.6-osx-x64.tar.gz
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-osx-x64.tar.gz

# Create the target folder where powershell is placed
sudo mkdir -p /usr/local/microsoft/powershell/7.3.6
sudo mkdir -p /usr/local/microsoft/powershell/7.3.7

# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/7.3.6
sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/7.3.7

# Set execute permissions
sudo chmod +x /usr/local/microsoft/powershell/7.3.6/pwsh
sudo chmod +x /usr/local/microsoft/powershell/7.3.7/pwsh

# Create the symbolic link that points to pwsh
sudo ln -s /usr/local/microsoft/powershell/7.3.6/pwsh /usr/local/bin/pwsh
sudo ln -s /usr/local/microsoft/powershell/7.3.7/pwsh /usr/local/bin/pwsh
```

## Uninstalling PowerShell
Expand All @@ -238,7 +238,7 @@ remove the paths using `sudo rm`.
## Paths

- `$PSHOME` is `/usr/local/microsoft/powershell/7.3.6/`
- `$PSHOME` is `/usr/local/microsoft/powershell/7.3.7/`
- User profiles are read from `~/.config/powershell/profile.ps1`
- Default profiles are read from `$PSHOME/profile.ps1`
- User modules are read from `~/.local/share/powershell/Modules`
Expand All @@ -252,7 +252,7 @@ exists at `Microsoft.PowerShell_profile.ps1` in the same locations.
PowerShell respects the [XDG Base Directory Specification][24] on macOS.

Because macOS is a derivation of BSD, the prefix `/usr/local` is used instead of `/opt`. So,
`$PSHOME` is `/usr/local/microsoft/powershell/7.3.6/`, and the symbolic link is placed at
`$PSHOME` is `/usr/local/microsoft/powershell/7.3.7/`, and the symbolic link is placed at
`/usr/local/bin/pwsh`.

## Supported versions
Expand Down Expand Up @@ -286,12 +286,12 @@ support those methods.
[13]: https://github.com/Homebrew
[14]: https://github.com/Homebrew/homebrew-cask
[15]: https://github.com/Homebrew/homebrew-cask-versions
[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-osx-arm64.pkg
[17]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-osx-arm64.tar.gz
[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-osx-x64.pkg
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-osx-x64.tar.gz
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-osx-arm64.pkg
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-osx-arm64.tar.gz
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-osx-x64.pkg
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-osx-x64.tar.gz
[16]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-7.2.14-osx-arm64.pkg
[17]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-7.2.14-osx-arm64.tar.gz
[18]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-7.2.14-osx-x64.pkg
[19]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-7.2.14-osx-x64.tar.gz
[20]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-osx-arm64.pkg
[21]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-osx-arm64.tar.gz
[22]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-osx-x64.pkg
[23]: https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-osx-x64.tar.gz
[24]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
12 changes: 6 additions & 6 deletions reference/docs-conceptual/install/community-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ apt -y remove powershell
Download the tar.gz package from the [releases][12] page onto your Raspberry Pi computer. The links
to the current versions are:

- PowerShell 7.3.6 - latest stable release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-linux-arm64.tar.gz`
- PowerShell 7.2.13 - LTS release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-linux-arm64.tar.gz`
- PowerShell 7.3.7 - latest stable release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-linux-arm64.tar.gz`
- PowerShell 7.2.14 - LTS release
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-7.2.14-linux-arm32.tar.gz`
- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-7.2.14-linux-arm64.tar.gz`

Use the following shell commands to download and install the package. This script detects whether
you are running a 32 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
Expand Up @@ -20,8 +20,8 @@ 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.3.6 - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-linux-alpine-x64.tar.gz`
- PowerShell 7.2.13 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-linux-alpine-x64.tar.gz`
- PowerShell 7.3.7 - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-linux-alpine-x64.tar.gz`
- PowerShell 7.2.14 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-7.2.14-linux-alpine-x64.tar.gz`

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

Expand All @@ -46,7 +46,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.3.6/powershell-7.3.6-linux-alpine-x64.tar.gz -o /tmp/powershell.tar.gz
curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-linux-alpine-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
4 changes: 2 additions & 2 deletions reference/docs-conceptual/install/install-debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Debian uses APT (Advanced Package Tool) as a package manager.
PowerShell 7.2 introduced a universal package that makes installation easier. Download the universal
package from the [releases][04] page onto the Debian 10 machine. The link to the current version is:

- PowerShell 7.3.6 - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell_7.3.6-1.deb_amd64.deb`
- PowerShell 7.2.13 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-lts_7.2.13-1.deb_amd64.deb`
- PowerShell 7.3.7 - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell_7.3.7-1.deb_amd64.deb`
- PowerShell 7.2.14 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-lts_7.2.14-1.deb_amd64.deb`

## Installation on Debian 11 via Package Repository

Expand Down
8 changes: 4 additions & 4 deletions reference/docs-conceptual/install/install-other-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,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.3.6-linux-arm32.tar.gz`
- `powershell-7.3.6-linux-arm64.tar.gz`
- `powershell-7.3.6-linux-x64.tar.gz`
- `powershell-7.3.7-linux-arm32.tar.gz`
- `powershell-7.3.7-linux-arm64.tar.gz`
- `powershell-7.3.7-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.3.6/powershell-7.3.6-linux-x64.tar.gz
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-linux-x64.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-rhel.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,28 @@ Starting with version 7.2, PowerShell is distributed as a universal RPM package.
of PowerShell had separate package for each OS. Download the RPM package you need onto your CentOS
machine.

- PowerShell 7.3.6 - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-1.rh.x86_64.rpm`
- PowerShell 7.2.13- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-lts-7.2.13-1.rh.x86_64.rpm`
- PowerShell 7.3.7 - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-1.rh.x86_64.rpm`
- PowerShell 7.2.14- `https://github.com/PowerShell/PowerShell/releases/download/v7.2.14/powershell-lts-7.2.14-1.rh.x86_64.rpm`

Use the following shell command to install the latest RPM package on the target version of RHEL.
Change the URL in the following shell commands to match the version you need.

On RHEL 9:

```sh
sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-1.rh.x86_64.rpm
sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-1.rh.x86_64.rpm
```

On RHEL 8:

```sh
sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-1.rh.x86_64.rpm
sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-1.rh.x86_64.rpm
```

On RHEL 7:

```sh
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-1.rh.x86_64.rpm
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-1.rh.x86_64.rpm
```

## Uninstallation - Red Hat Enterprise Linux (RHEL) 7
Expand Down
Loading

0 comments on commit 41d95d1

Please sign in to comment.