Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

V6 0 4 Release of PowerShell Core: What It Means

· 7 min read · Home Tech

In this article
  1. Background: From Windows PowerShell to PowerShell Core
  2. What Changed in PowerShell Core 6.0.4
  3. How to Get and Install 6.0.4
  4. Key Differences Between PowerShell Core and Windows PowerShell
  5. Common Problems and How to Solve Them
  6. Why 6.0.4 Was Short-Lived
  7. Should You Use PowerShell Core 6.0.4 Today?
  8. Frequently Asked Questions

PowerShell Core 6.0.4 is a maintenance release of the cross-platform PowerShell, focused on bug fixes and minor improvements rather than new features. It was released on August 10, 2018, and is part of the 6.0 series that brought PowerShell to Linux and macOS. This article explains what changed in 6.0.4, how it fits into the broader PowerShell history, and what you should consider when deciding whether to use it.

in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Background: From Windows PowerShell to PowerShell Core

PowerShell began as a Windows-only scripting language and automation framework, built on the .NET Framework. In 2016, Microsoft announced it would make PowerShell open-source and cross-platform, leading to the creation of PowerShell Core. The name 'Core' reflects that it runs on .NET Core, a cross-platform runtime, unlike the original Windows PowerShell which relied on the full .NET Framework.

PowerShell Core 6.0 was the first stable release of this new branch, launched in January 2018. It introduced support for Linux and macOS, along with a host of new features like parallel execution with ForEach-Object -Parallel (though that came later in 7.0) and improved compatibility with existing scripts. The 6.0.x series, including 6.0.4, was focused on stabilizing this new foundation.

What Changed in PowerShell Core 6.0.4

Version 6.0.4 was a typical patch release. The official changelog lists several bug fixes and minor enhancements, but no headline features. Some of the notable fixes include:

  • Fixed a bug where Get-ChildItem could fail when accessing certain network paths on Linux.
  • Resolved an issue with the Import-Csv cmdlet that caused it to misinterpret some quoted fields.
  • Improved the behavior of Start-Job when using the ThrottleLimit parameter.
  • Corrected a problem with the Get-Help cmdlet that caused it to crash on some systems.

These fixes were aimed at making the 6.0 branch more reliable for day-to-day use, especially for those running PowerShell on non-Windows platforms. For most users, the update was seamless and required no changes to existing scripts.

How to Get and Install 6.0.4

PowerShell Core 6.0.4 was distributed through several channels:

  • GitHub Releases: The source code and binary packages (MSI, DEB, RPM, and tar.gz) were available on the PowerShell GitHub repository.
  • Package managers: It could be installed via choco install powershell-core on Windows, apt or yum on Linux, and brew install powershell on macOS.
  • Microsoft Store: A Windows Store version was also offered, though it lagged behind the GitHub releases.

To check your current version, run $PSVersionTable.PSVersion. If you had 6.0.0 through 6.0.3, upgrading to 6.0.4 was a simple matter of installing the new package over the old one. The installation process did not overwrite Windows PowerShell 5.1, so both could coexist on the same system.

Key Differences Between PowerShell Core and Windows PowerShell

Understanding the distinction is crucial for anyone deciding whether to use 6.0.4 or stick with Windows PowerShell 5.1. Here are the main differences:

  • Platform support: PowerShell Core runs on Windows, Linux, and macOS; Windows PowerShell only runs on Windows.
  • .NET version: Core uses .NET Core, while Windows PowerShell uses the full .NET Framework. This affects compatibility with certain .NET libraries.
  • Module compatibility: Some Windows-specific modules (e.g., ActiveDirectory, GroupPolicy) do not work in PowerShell Core, though many have been updated or have cross-platform alternatives.
  • Default execution policy: On Linux/macOS, there is no execution policy restriction; on Windows, the default is Restricted for Windows PowerShell, but Core defaults to Unrestricted on non-Windows.
  • Cmdlet differences: A few cmdlets have different behavior or are missing in Core. For example, Out-GridView is not available on Linux/macOS.

If you are writing scripts that need to run on multiple operating systems, PowerShell Core is the way to go. If you are only on Windows and rely heavily on Windows-specific modules, Windows PowerShell 5.1 may still be your best choice.

Common Problems and How to Solve Them

Users moving to PowerShell Core 6.0.4 often encountered a few recurring issues:

  • Missing modules: Some modules that worked in Windows PowerShell were not available or had different names. Solution: search for cross-platform alternatives or use the Compatibility feature (introduced later) to load Windows modules on Windows.
  • Encoding issues: PowerShell Core defaults to UTF-8, whereas Windows PowerShell used UTF-16. This can cause problems when reading/writing text files. Solution: explicitly specify encoding with -Encoding UTF8 when needed.
  • Execution policy errors on Linux: Some users expected the same execution policy behavior as Windows, but on Linux/macOS, there is no execution policy by default. Solution: if you need to restrict script execution, use file permissions or set the policy explicitly with Set-ExecutionPolicy (which works on all platforms).

These issues were generally well-documented in the GitHub issue tracker, and many had workarounds or were fixed in later versions.

Why 6.0.4 Was Short-Lived

PowerShell Core 6.0.4 was released in August 2018, but the 6.0 branch was already nearing its end. Microsoft announced that 6.0 would be supported until January 2019, with 6.1 (based on .NET Core 2.1) arriving soon after. The 6.1 release brought many more improvements, including better compatibility with Windows PowerShell modules and support for new operating system versions.

For most users, upgrading to 6.0.4 was a stepping stone to 6.1 or later. The 6.x series itself was eventually replaced by PowerShell 7.0 in March 2020, which uses .NET Core 3.1 and is the current long-term support version. Today, PowerShell 7.x is the recommended version for all new work, and 6.0.4 is considered obsolete.

Should You Use PowerShell Core 6.0.4 Today?

In short, no. PowerShell 6.0.4 is out of support and has been superseded by PowerShell 7.x. Using an unsupported version means you won't receive security updates or bug fixes. If you are still on 6.0.4, you should upgrade to the latest PowerShell 7 release to ensure stability and security.

If you are just starting with PowerShell, begin with the current version. If you are maintaining legacy scripts that only run on 6.0.4, consider updating them to work with 7.x, as the differences are minimal for most use cases. The transition from 6.0 to 7.0 was designed to be smooth, with only a few breaking changes.

Frequently Asked Questions

Is PowerShell Core 6.0.4 the same as Windows PowerShell 6.0.4?

No. Windows PowerShell is a separate product that has stayed at version 5.1. PowerShell Core 6.0.4 is a cross-platform version that runs on Windows, Linux, and macOS. On Windows, you can have both installed side by side, but they are distinct executables and have different capabilities.

How do I check if I have PowerShell Core 6.0.4 installed?

Open a PowerShell prompt and type $PSVersionTable.PSVersion. If the result is 6.0.4, you have that version. You can also check the executable name: pwsh.exe on Windows, or pwsh on Linux/macOS, whereas Windows PowerShell uses powershell.exe.

Can I install PowerShell Core 6.0.4 on Windows 10?

Yes, it was fully supported on Windows 7 and later, including Windows 10. However, since it is no longer supported, it is not recommended to install it on a new system. Instead, install the latest PowerShell 7.x from the official GitHub releases or the Microsoft Store.

What is the difference between PowerShell Core and PowerShell 7?

PowerShell 7 is the successor to PowerShell Core 6.x. It is built on .NET Core 3.1 (and later .NET 5/6/7/8) and includes many improvements, such as better compatibility with Windows PowerShell modules, new operators (??, ??=), and the ForEach-Object -Parallel feature. PowerShell 7 is the current recommended version and is supported by Microsoft.

Does PowerShell Core 6.0.4 work on macOS?

Yes, it was one of the first versions to support macOS. You could install it via Homebrew with brew install powershell. However, as with all 6.0.x versions, it is no longer supported, so it is better to use the latest PowerShell 7 on macOS.

Why is PowerShell Core 6.0.4 not recommended anymore?

Because it is out of support. Microsoft provides security and bug fixes only for the latest versions. Using an unsupported version exposes you to potential security vulnerabilities and compatibility issues with newer operating systems and .NET runtimes. Always use a supported version, such as PowerShell 7.x.