V6 2 3 Release of PowerShell Core
In this article
PowerShell Core 6.2.3 is a patch release of the cross-platform PowerShell 6.2 branch, published on September 12, 2019. It fixes a set of bugs and regressions introduced in earlier 6.2 releases and remains a supported update for users who cannot yet move to PowerShell 7. This article explains what this release contains, how it fits into PowerShell's history, and what you should know before using it.
Background: Why PowerShell Core Exists
PowerShell Core was born from the decision to make PowerShell a truly cross-platform tool. The original Windows PowerShell 5.1 is built on the .NET Framework and only runs on Windows. PowerShell Core, starting with version 6.0 in 2018, was rebuilt on .NET Core, allowing it to run on Linux and macOS as well as Windows. This shift also changed how PowerShell is versioned and released. Instead of a monolithic Windows-only product, PowerShell Core follows a more frequent release cadence, with minor versions (6.0, 6.1, 6.2) and patch releases (6.2.1, 6.2.2, 6.2.3) that address bugs and security issues.
The 6.2 Branch and the 6.2.3 Patch
PowerShell 6.2 was released in March 2019, introducing several improvements over 6.1, including better performance in some parsing scenarios, support for the <#> block comment convention, and a new -NoEnumerate parameter on Write-Output. The 6.2.3 patch, released on September 12, 2019, was specifically a bug-fix release. It addressed a handful of issues, such as a problem where the Start-Job cmdlet could fail on Linux when the job output was large, and a regression in the ConvertTo-Json cmdlet that affected how certain strings were escaped. The release notes also mention a fix for a crash that could occur when using the Get-Error cmdlet in a specific scenario. None of these changes altered the public API or added new features; they were strictly corrections to existing behavior.
How to Get and Install 6.2.3
You can download PowerShell Core 6.2.3 from the official GitHub releases page. Installation methods vary by operating system:
- Windows: Download the
PowerShell-6.2.3-win-x64.msiorwin-x86.msiinstaller and run it. The MSI supports silent installation viamsiexec /i PowerShell-6.2.3-win-x64.msi /qn. - Linux: Use the package manager for your distribution. For example, on Ubuntu, you can use
snap install powershell --channel=6.2/stableor download the.debpackage and install withdpkg -i. - macOS: Download the
powershell-6.2.3-osx-x64.pkgand run it, or usebrew install powershell --version 6.2.3if you prefer Homebrew.
After installation, you can verify the version by running $PSVersionTable in a PowerShell prompt. The PSVersion property should show 6.2.3.
Key Differences from Windows PowerShell 5.1
If you are coming from Windows PowerShell 5.1, you will notice several differences in PowerShell Core 6.2.3:
- Cross-platform: It runs on Linux and macOS, but some Windows-specific features like the
Get-WmiObjectcmdlet are removed (useGet-CimInstanceinstead). - No built-in GUI: The PowerShell ISE is not included; you use the console or a third-party editor like VS Code.
- Different default encoding: On Linux/macOS, the default output encoding is UTF-8, while Windows PowerShell uses UTF-16LE.
- Some cmdlets are renamed or removed: For example,
Out-File -Encodingnow acceptsutf8NoBOMas a value, which was not available in 5.1.
These changes mean that scripts written for Windows PowerShell 5.1 may not run unchanged in PowerShell Core 6.2.3, especially if they rely on Windows-only modules or cmdlets.
Common Problems and How to Solve Them
Users upgrading to 6.2.3 sometimes encounter issues. Here are a few typical ones and their solutions:
- Module not found: If a module you used in Windows PowerShell 5.1 is missing, check if it is compatible with .NET Core. Many popular modules like
PesterandPSReadLinehave versions that support PowerShell Core. Install the compatible version from the PowerShell Gallery. - Execution policy errors on Linux/macOS: PowerShell Core on Unix does not enforce execution policies by default. If you see an error about execution policy, you can set it with
Set-ExecutionPolicy -Scope CurrentUser. - Encoding issues when reading files: If a file was saved with a different encoding, PowerShell Core might read it incorrectly. Use
Get-Content -Encodingto specify the correct encoding. - Performance degradation in some loops: Some users reported slower loops in 6.2 compared to 5.1. This is often due to the different .NET runtime. If performance is critical, consider using
ForEach-Object -Parallel(available in PowerShell 7) or optimizing your script.
Should You Use 6.2.3 or Move to PowerShell 7?
PowerShell 7, released in March 2020, is the successor to PowerShell Core 6.x. It is built on .NET Core 3.1 (later .NET 5/6/7) and brings back many Windows compatibility features that were missing in 6.x, such as the Out-GridView cmdlet and the ability to run on Windows PowerShell 5.1 side-by-side. Microsoft has stated that PowerShell Core 6.x is no longer supported after September 2020. Therefore, for new projects, you should use PowerShell 7. However, if you have existing scripts that depend on 6.2-specific behavior and you cannot migrate, 6.2.3 is the last stable patch in that line. It is generally safe to run, but be aware that it will not receive further updates.
Frequently Asked Questions
Is PowerShell Core 6.2.3 the same as Windows PowerShell 6.2.3?
No. Windows PowerShell is a separate product that has only one major version (5.1). PowerShell Core 6.2.3 is a cross-platform version that runs on Windows, Linux, and macOS. There is no "Windows PowerShell 6" – the 6.x line is exclusively PowerShell Core.
Can I install PowerShell Core 6.2.3 side-by-side with Windows PowerShell 5.1?
Yes. On Windows, PowerShell Core installs to %ProgramFiles%\PowerShell\6 and does not overwrite the Windows PowerShell 5.1 installation in %SystemRoot%\System32\WindowsPowerShell\v1.0. You can launch either by typing pwsh for Core or powershell for 5.1.
Does PowerShell Core 6.2.3 support all Windows PowerShell modules?
No. Modules that depend on Windows-specific .NET Framework libraries will not load. You can check compatibility by running Get-Module -ListAvailable and looking for modules that have a CompatiblePSEditions property of Core. Many popular modules have been updated to support both editions.
What is the difference between PowerShell Core and PowerShell 7?
PowerShell 7 is the next major version after 6.x. It is built on .NET Core 3.1 (and later versions) and includes many improvements, such as the ForEach-Object -Parallel feature, the Get-Error cmdlet, and better compatibility with Windows PowerShell modules. Microsoft recommends PowerShell 7 for all new deployments.
Is PowerShell Core 6.2.3 free to use?
Yes. PowerShell Core is open-source (MIT license) and free for all uses, including commercial. You can download it from GitHub or via package managers.
How do I uninstall PowerShell Core 6.2.3?
On Windows, use the "Apps & features" settings to uninstall the MSI package. On Linux, use your package manager (e.g., sudo apt remove powershell). On macOS, delete the /usr/local/microsoft/powershell/6 folder and the symlink /usr/local/bin/pwsh.