Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET
Cloud Computing

What You Need to Know About PowerShell 7

For those of you that haven’t been keeping up with PowerShell developments over the last few years, Windows PowerShell 5.1 was the last version of PowerShell released exclusively for Windows. And while still supported, it is in maintenance mode. Which means that there won’t be any new features, but Microsoft will still provide bug and security patches.

Because Windows PowerShell is based on the full .NET Framework, it doesn’t provide cross-platform support. PowerShell Core 6.0 was released in January 2018 and it is based on .NET Core, so it runs on Windows, Linux, and MacOS. It is open-source and it is designed for managing heterogeneous environments and the hybrid cloud.

PowerShell Core 6 Compatibility

So far, so good. But PowerShell Core 6 is based on .NET Core 2, so it doesn’t provide full compatibility with modules that were designed for Windows PowerShell, limiting how PS Core can be used. PowerShell Core and Windows PowerShell can be installed side-by-side but in an ideal world, you would use only one version. Microsoft claims that PowerShell Core has seen an increase in usage on Linux and MacOS but remained static on Windows systems. And that’s largely due to the lack of support for legacy modules.

Sponsored Content

Say Goodbye to Traditional PC Lifecycle Management

Traditional IT tools, including Microsoft SCCM, Ghost Solution Suite, and KACE, often require considerable custom configurations by T3 technicians (an expensive and often elusive IT resource) to enable management of a hybrid onsite + remote workforce. In many cases, even with the best resources, organizations are finding that these on-premise tools simply cannot support remote endpoints consistently and reliably due to infrastructure limitations.

What You Need to Know About PowerShell 7 (Image Credit: Microsoft)
What You Need to Know About PowerShell 7 (Image Credit: Microsoft)

Introducing PowerShell 7

PowerShell 7 (PS7) is based on .NET Core 3.0 and Microsoft is aiming to provide much greater compatibility with Windows PowerShell modules, as much as 90 percent. This should enable administrators to use one version of PowerShell on Windows, Linux, and MacOS. APIs required by Windows PowerShell modules have been added to the .NET Core 3.0 runtime to achieve better compatibility. And for those of you that have missed it, Out-GridView should be back but only on Windows.

Performance and Security

Moving to .NET Core 3.0 will not only bring better compatibility but also performance improvements. On Windows, .NET Core 3.0 will provide access to Windows Presentation Foundation (WPF) and WinForms APIs, among others.

As part of PowerShell 7, Microsoft is introducing a way to securely use credentials from a local or remote store so that passwords don’t need to be embedded in scripts. Logging will also be improved to provide a mechanism that sends local machine logs to a remote device, irrespective of the originating operating system.

What’s in a Name?

‘Core’ has been dropped from the name to reduce complexity in the documentation and clarify that PS7 is intended as a replacement for Windows PowerShell.

Support Lifecycle

PowerShell Core 6 is governed by Microsoft’s Modern Lifecycle Policy, meaning that you must install the latest stable version within 6 months of a minor version release. But in PowerShell 7, Microsoft will align support with the .NET Core support lifecycle, so there will be a long-term and non-long-term servicing releases.

PowerShell 7 First Preview Release

The first preview of PowerShell 7 was released at the end of May and you can download it from GitHub here. Just like PSCore 6, PS7 can be installed side-by-side with Windows PowerShell 5.1.

It’s still early days and Microsoft hasn’t finalized the feature list yet, so don’t expect to see too much in this first release. PS7 is expected to reach general availability soon after .NET Core 3, which is slated to be sometime in the second half of 2019. Microsoft says that it plans to include PowerShell 7 as an inbox feature in Windows 10 at some point, alongside Windows PowerShell 5.1. But there are still some details to work out and no date has been given on when that will happen.

PowerShell briefly entered the top 50 TIOBE Index of programming languages earlier this year, only to then drop out. So, while PowerShell has experienced an increase in use since it was open sourced and made available for Linux and MacOS, it’s still got a way to go before it catches up with Bash. But comparisons with Bash, Perl, and Python are somewhat academic because they are all designed for different purposes. For example, Bash is a shell, PowerShell is a shell plus a complete scripting environment, and Python is a high-level, general-purpose programming language.


Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (1)

One response to “What You Need to Know About PowerShell 7”

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.
Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: