Updates from: 03/16/2021 04:14:44
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Core About Comparison Operators (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 02/19/2021 Last updated : 03/15/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Comparison_Operators
There are a few exceptions:
- The containment and type operators always return a **Boolean** value - The `-replace` operator returns the replacement result - The `-match` and `-notmatch` operators also populate the `$Matches` automatic
- variable
+ variable unless the left-hand side of the expression is a collection.
## Equality operators
Scalar examples:
``` If the input is a collection, the operators return the matching members of that
-collection.
+collection and the `$Matches` automatic variable is `$null`.
Collection examples:
Microsoft.PowerShell.Core About Comparison Operators (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 02/19/2021 Last updated : 03/15/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Comparison_Operators
There are a few exceptions:
- The containment and type operators always return a **Boolean** value - The `-replace` operator returns the replacement result - The `-match` and `-notmatch` operators also populate the `$Matches` automatic
- variable
+ variable unless the left-hand side of the expression is a collection.
## Equality operators
Scalar examples:
``` If the input is a collection, the operators return the matching members of that
-collection.
+collection and the `$Matches` automatic variable is `$null`.
Collection examples:
Microsoft.PowerShell.Core About Comparison Operators (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 02/19/2021 Last updated : 03/15/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Comparison_Operators
There are a few exceptions:
- The containment and type operators always return a **Boolean** value - The `-replace` operator returns the replacement result - The `-match` and `-notmatch` operators also populate the `$Matches` automatic
- variable
+ variable unless the left-hand side of the expression is a collection.
## Equality operators
Scalar examples:
``` If the input is a collection, the operators return the matching members of that
-collection.
+collection and the `$Matches` automatic variable is `$null`.
Collection examples:
Microsoft.PowerShell.Core About Comparison Operators (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
--- description: Describes the operators that compare values in PowerShell. Locale: en-US Previously updated : 02/19/2021 Last updated : 03/15/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about_Comparison_Operators
There are a few exceptions:
- The containment and type operators always return a **Boolean** value - The `-replace` operator returns the replacement result - The `-match` and `-notmatch` operators also populate the `$Matches` automatic
- variable
+ variable unless the left-hand side of the expression is a collection.
## Equality operators
install Installing Powershell Core On Linux https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/install/Installing-PowerShell-Core-on-Linux.md
PowerShell with `sudo apt-get install powershell`.
### Installation via Direct Download - Ubuntu 16.04
-Download the Debian package `powershell_7.1.2-1.ubuntu.16.04_amd64.deb` from the [releases][] page
+Download the Debian package `powershell_7.1.3-1.ubuntu.16.04_amd64.deb` from the [releases][] page
onto the Ubuntu machine. Then, in the terminal, execute the following commands: ```sh
-sudo dpkg -i powershell_7.1.2-1.ubuntu.16.04_amd64.deb
+sudo dpkg -i powershell_7.1.3-1.ubuntu.16.04_amd64.deb
sudo apt-get install -f ```
PowerShell with `sudo apt-get install powershell`.
### Installation via Direct Download - Ubuntu 18.04
-Download the Debian package `powershell_7.1.2-1.ubuntu.18.04_amd64.deb` from the [releases][] page
+Download the Debian package `powershell_7.1.3-1.ubuntu.18.04_amd64.deb` from the [releases][] page
onto the Ubuntu machine. Then, in the terminal, execute the following commands: ```sh
-sudo dpkg -i powershell_7.1.2-1.ubuntu.18.04_amd64.deb
+sudo dpkg -i powershell_7.1.3-1.ubuntu.18.04_amd64.deb
sudo apt-get install -f ```
PowerShell with `sudo apt-get install powershell`.
### Installation via Direct Download - Ubuntu 20.04
-Download the Debian package `powershell_7.1.2-1.ubuntu.20.04_amd64.deb` from the [releases][] page
+Download the Debian package `powershell_7.1.3-1.ubuntu.20.04_amd64.deb` from the [releases][] page
onto the Ubuntu machine. Then, in the terminal, execute the following commands: ```sh
-sudo dpkg -i powershell_7.1.2-1.ubuntu.20.04_amd64.deb
+sudo dpkg -i powershell_7.1.3-1.ubuntu.20.04_amd64.deb
sudo apt-get install -f ```
with `sudo apt-get install powershell`.
### Installation via Direct Download - Debian 9
-Download the Debian package `powershell_7.1.2-1.debian.9_amd64.deb` from the [releases][] page
+Download the Debian package `powershell_7.1.3-1.debian.9_amd64.deb` from the [releases][] page
onto the Debian machine. Then, in the terminal, execute the following commands: ```sh
-sudo dpkg -i powershell_7.1.2-1.debian.9_amd64.deb
+sudo dpkg -i powershell_7.1.3-1.debian.9_amd64.deb
sudo apt-get install -f ```
pwsh
### Installation via Direct Download - Debian 10
-Download the tar.gz package `powershell-7.1.2-linux-x64.tar.gz` from the [releases][] page
+Download the tar.gz package `powershell-7.1.3-linux-x64.tar.gz` from the [releases][] page
onto the Debian machine. Then, in the terminal, execute the following commands:
sudo apt-get install -y \
curl # Download the powershell '.tar.gz' archive
-curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-linux-x64.tar.gz -o /tmp/powershell.tar.gz
+curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-linux-x64.tar.gz -o /tmp/powershell.tar.gz
# Create the target folder where powershell will be placed sudo mkdir -p /opt/microsoft/powershell/7
pwsh
### Installation via Direct Download - Alpine 3.9 and 3.10
-Download the tar.gz package `powershell-7.1.2-linux-alpine-x64.tar.gz` from the [releases][] page onto
+Download the tar.gz package `powershell-7.1.3-linux-alpine-x64.tar.gz` from the [releases][] page onto
the Alpine machine. Then, in the terminal, execute the following commands:
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.1.2/powershell-7.1.2-linux-alpine-x64.tar.gz -o /tmp/powershell.tar.gz
+curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-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
with `sudo yum update powershell`.
### Installation via Direct Download - CentOS 7
-Using [CentOS 7][], download the RPM package `powershell-7.1.2-1.rhel.7.x86_64.rpm` from the [releases][]
+Using [CentOS 7][], download the RPM package `powershell-7.1.3-1.rhel.7.x86_64.rpm` from the [releases][]
page onto the CentOS machine. Then, in the terminal, execute the following commands: ```sh
-sudo yum install powershell-7.1.2-1.rhel.7.x86_64.rpm
+sudo yum install powershell-7.1.3-1.rhel.7.x86_64.rpm
``` You can install the RPM without the intermediate step of downloading it: ```sh
-sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-1.rhel.7.x86_64.rpm
+sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-1.rhel.7.x86_64.rpm
``` ### Uninstallation - CentOS 7
with `sudo yum update powershell`.
### Installation via Direct Download - Red Hat Enterprise Linux (RHEL) 7
-Download the RPM package `powershell-7.1.2-1.rhel.7.x86_64.rpm` from the [releases][] page onto
+Download the RPM package `powershell-7.1.3-1.rhel.7.x86_64.rpm` from the [releases][] page onto
the Red Hat Enterprise Linux machine. Then, in the terminal, execute the following commands: ```sh
-sudo yum install powershell-7.1.2-1.rhel.7.x86_64.rpm
+sudo yum install powershell-7.1.3-1.rhel.7.x86_64.rpm
``` You can install the RPM without the intermediate step of downloading it: ```sh
-sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-1.rhel.7.x86_64.rpm
+sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-1.rhel.7.x86_64.rpm
``` ### Uninstallation - Red Hat Enterprise Linux (RHEL) 7
sudo yum remove powershell
zypper update && zypper --non-interactive install curl tar libicu52_1 # Download the powershell '.tar.gz' archive
-curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-linux-x64.tar.gz -o /tmp/powershell.tar.gz
+curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-linux-x64.tar.gz -o /tmp/powershell.tar.gz
# Create the target folder where powershell will be placed mkdir -p /opt/microsoft/powershell/7
pwsh
zypper update && zypper --non-interactive install curl tar gzip libopenssl1_0_0 libicu60_2 # Download the powershell '.tar.gz' archive
-curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-linux-x64.tar.gz -o /tmp/powershell.tar.gz
+curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-linux-x64.tar.gz -o /tmp/powershell.tar.gz
# Create the target folder where powershell will be placed mkdir -p /opt/microsoft/powershell/7
pwsh
### Installation via Direct Download - Fedora 28, 29, and 30
-Download the RPM package `powershell-7.1.2-1.rhel.7.x86_64.rpm` from the [releases][] page onto the
+Download the RPM package `powershell-7.1.3-1.rhel.7.x86_64.rpm` from the [releases][] page onto the
Fedora machine. Then, in the terminal, execute the following commands: ```sh sudo dnf install compat-openssl10
-sudo dnf install powershell-7.1.2-1.rhel.7.x86_64.rpm
+sudo dnf install powershell-7.1.3-1.rhel.7.x86_64.rpm
``` You can install the RPM without the intermediate step of downloading it: ```sh sudo dnf install compat-openssl10
-sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-1.rhel.7.x86_64.rpm
+sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-1.rhel.7.x86_64.rpm
``` ### Uninstallation - Fedora 28, 29, and 30
sudo apt-get install '^libssl1.0.[0-9]$' libunwind8 -y
# Download and extract PowerShell # Grab the latest tar.gz
-wget https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-linux-arm32.tar.gz
+wget https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-linux-arm32.tar.gz
# Make folder to put powershell mkdir ~/powershell # Unpack the tar.gz file
-tar -xvf ./powershell-7.1.2-linux-arm32.tar.gz -C ~/powershell
+tar -xvf ./powershell-7.1.3-linux-arm32.tar.gz -C ~/powershell
# Start PowerShell ~/powershell/pwsh
from a new shell by typing `pwsh`.
PowerShell binary `tar.gz` archives are provided for Linux platforms to enable advanced deployment scenarios.
+> [!NOTE]
+> You can use this method to install any version of PowerShell including the latest:
+> - Stable release: [https://aka.ms/powershell-release?tag=stable](https://aka.ms/powershell-release?tag=stable)
+> - Preview release: [https://aka.ms/powershell-release?tag=preview](https://aka.ms/powershell-release?tag=preview)
+> - LTS release: [https://aka.ms/powershell-release?tag=lts](https://aka.ms/powershell-release?tag=lts)
+ ### Dependencies PowerShell builds portable binaries for all Linux distributions. But, .NET Core runtime requires
Linux `tar.gz` 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.1.2-linux-arm32.tar.gz-- powershell-7.1.2-linux-arm64.tar.gz-- powershell-7.1.2-linux-x64.tar.gz
+- powershell-7.1.3-linux-arm32.tar.gz
+- powershell-7.1.3-linux-arm64.tar.gz
+- powershell-7.1.3-linux-x64.tar.gz
#### Linux ```sh # Download the powershell '.tar.gz' archive
-curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-linux-x64.tar.gz
+curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-linux-x64.tar.gz
# Create the target folder where powershell will be placed sudo mkdir -p /opt/microsoft/powershell/7
install Installing Powershell Core On Windows https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/install/Installing-PowerShell-Core-on-Windows.md
find the latest [preview][] version. Scroll down to the **Assets** section of th
The MSI file looks like `PowerShell-<version>-win-<os-arch>.msi`. For example: -- `PowerShell-7.1.2-win-x64.msi`-- `PowerShell-7.1.2-win-x86.msi`
+- `PowerShell-7.1.3-win-x64.msi`
+- `PowerShell-7.1.3-win-x86.msi`
Once downloaded, double-click the installer and follow the prompts.
installation options:
The following example shows how to silently install PowerShell with all the install options enabled. ```powershell
-msiexec.exe /package PowerShell-7.1.2-win-x64.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1
+msiexec.exe /package PowerShell-7.1.3-win-x64.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1
``` For a full list of command-line options for `Msiexec.exe`, see
values are changed for each major release.
PowerShell binary ZIP archives are provided to enable advanced deployment scenarios. Download one of the following ZIP archives from the [releases][releases] page. -- PowerShell-7.1.2-win-x64.zip-- PowerShell-7.1.2-win-x86.zip-- PowerShell-7.1.2-win-arm64.zip-- PowerShell-7.1.2-win-arm32.zip
+- PowerShell-7.1.3-win-x64.zip
+- PowerShell-7.1.3-win-x86.zip
+- PowerShell-7.1.3-win-arm64.zip
+- PowerShell-7.1.3-win-arm32.zip
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
Use this method to install the ARM-based version of PowerShell on computers like
Surface Pro X. For best results, install PowerShell to the to `$env:ProgramFiles\PowerShell\7` folder.
+> [!NOTE]
+> You can use this method to install any version of PowerShell including the latest:
+> - Stable release: [https://aka.ms/powershell-release?tag=stable](https://aka.ms/powershell-release?tag=stable)
+> - Preview release: [https://aka.ms/powershell-release?tag=preview](https://aka.ms/powershell-release?tag=preview)
+> - LTS release: [https://aka.ms/powershell-release?tag=lts](https://aka.ms/powershell-release?tag=lts)
+ ## Deploying on Windows 10 IoT Enterprise Windows 10 IoT Enterprise comes with Windows PowerShell, which we can use to deploy PowerShell 7.
The following commands can be used to install PowerShell using the published `wi
``` ```Output
- Name Id Version
- ---------------------------------------------------------------
- PowerShell Microsoft.PowerShell 7.1.2
- PowerShell-Preview Microsoft.PowerShell-Preview 7.1.2-preview.5
+ Name Id Version
+ ---------------------------------------------------------------------------
+ PowerShell Microsoft.PowerShell 7.1.3
+ PowerShell Preview (MSIX) Microsoft.PowerShell-Preview-MSIX 7.0.2
+ PowerShell-Preview Microsoft.PowerShell-Preview 7.2.0-preview.3
``` 1. Install a version of PowerShell using the `--exact` parameter
install Installing Powershell Core On Macos https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/install/Installing-PowerShell-Core-on-macOS.md
--- Title: Installing PowerShell on macOS description: Information about installing PowerShell on macOS Previously updated : 02/02/2021 Last updated : 03/15/2021 --- # Installing PowerShell on macOS
brew upgrade powershell
## Installation via Direct Download
-Download the PKG package `powershell-7.1.2-osx-x64.pkg` from the [releases][] page onto your
+Download the PKG package `powershell-7.1.3-osx-x64.pkg` from the [releases][] page onto your
macOS machine. You can double-click the file and follow the prompts, or install it from the terminal: ```sh
-sudo installer -pkg powershell-7.1.2-osx-x64.pkg -target /
+sudo installer -pkg powershell-7.1.3-osx-x64.pkg -target /
``` Install [OpenSSL](#installing-dependencies). OpenSSL is needed for PowerShell remoting and CIM
dependencies.
Install [OpenSSL](#installing-dependencies). OpenSSL is needed for PowerShell remoting and CIM operations.
+> [!NOTE]
+> You can use this method to install any version of PowerShell including the latest:
+> - Stable release: [https://aka.ms/powershell-release?tag=stable](https://aka.ms/powershell-release?tag=stable)
+> - Preview release: [https://aka.ms/powershell-release?tag=preview](https://aka.ms/powershell-release?tag=preview)
+> - LTS release: [https://aka.ms/powershell-release?tag=lts](https://aka.ms/powershell-release?tag=lts)
+ ### Installing binary archives on macOS ```sh # Download the powershell '.tar.gz' archive
-curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-osx-x64.tar.gz
+curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-osx-x64.tar.gz
# Create the target folder where powershell will be placed
-sudo mkdir -p /usr/local/microsoft/powershell/7.1.2
+sudo mkdir -p /usr/local/microsoft/powershell/7.1.3
# Expand powershell to the target folder
-sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/7.1.2
+sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/7.1.3
# Set execute permissions
-sudo chmod +x /usr/local/microsoft/powershell/7.1.2/pwsh
+sudo chmod +x /usr/local/microsoft/powershell/7.1.3/pwsh
# Create the symbolic link that points to pwsh
-sudo ln -s /usr/local/microsoft/powershell/7.1.2/pwsh /usr/local/bin/pwsh
+sudo ln -s /usr/local/microsoft/powershell/7.1.3/pwsh /usr/local/bin/pwsh
``` ## Installing dependencies
and remove the paths using `sudo rm`.
## Paths -- `$PSHOME` is `/usr/local/microsoft/powershell/7.1.2/`
+- `$PSHOME` is `/usr/local/microsoft/powershell/7.1.3/`
- User profiles will be read from `~/.config/powershell/profile.ps1` - Default profiles will be read from `$PSHOME/profile.ps1` - User modules will be read from `~/.local/share/powershell/Modules`
exists at `Microsoft.PowerShell_profile.ps1` in the same locations.
PowerShell respects the [XDG Base Directory Specification][xdg-bds] 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.1.2/`, and the symbolic link is placed at
+`$PSHOME` is `/usr/local/microsoft/powershell/7.1.3/`, and the symbolic link is placed at
`/usr/local/bin/pwsh`. ## Installation support