Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Updates: We have updated this article to reflect these changes.

    • Windows Management Framework 5.0 RTM, which includes Windows PowerShell 5.0 for systems earlier than Windows 10, is now released.
    • Windows Management Framework 5.0 is now available in the Microsoft Update Catalog.

There are some amazing new features of Windows PowerShell 5.0. Some of them, including PowerShellGet, are available in Windows PowerShell 3.0 and 4.0. But, many very useful features, including the new advanced features of DSC, PowerShell classes, the information stream, remote debugging, copying between sessions, and advanced logging are supported only in 5.0.

Unlike previous releases, Windows PowerShell 5.0 will have supported releases, but will not be final. It will be updated with Windows.

All SAPIEN software products fully support Windows PowerShell 5.0 and the new modules, like Pester and PSScriptAnalyzer.

So, how do you find and install PowerShell 5.0?

On Windows 10

Windows PowerShell 5.0 is installed with Windows 10. And, it’s updated automatically when Windows Update updates Windows 10.

Notice that Windows PowerShell now has non-negative values for the Build and Revision properties in its version number.

Windows PowerShell

The full version is useful for comparing versions, although not all versions are different from each other. On the downside, the #Requires -Version statement looks only at the Major and Minor property values, so you need to use an IF statement, or something similar, require a particular version.

In this example, #Requires -Version does not stop the script from running.

#Requires -Version

 

On older Windows

If you’re running an older version of Windows, you can install Windows PowerShell 5.0. After being recalled, this RTM version was re-released on February 24, 2016. It’s available in Windows Management Framework (WMF) 5.0 on the Microsoft Download Center and in the Microsoft Update Catalog for large deployments using WSUS or SSCM. It’s also available as a Windows update, KB3066439.

WMF 5.0 supports the following systems:

        • Windows Server 2012 R2
        • Windows Server 2012
        • Windows Server 2008 R2 SP1
        • Windows 8.1
        • Windows 8.1
        • Windows 7 SP1

To install it:

In the Microsoft Update Catalog, search for the version designed for your system. (Searching for “Windows Management Framework,” “Windows PowerShell,” or “PowerShell” doesn’t return these updates. You need to have the magic KB numbers.)

  • KB3134758 for Windows Server 2012 R2 and Windows 8.1
  • KB3134759 for Windows Server 2012
  • KB3134760 for Windows Server 2008 R2 SP1 and Windows 7 SP1

If you installed the WMF 5.0 release version while it was posted on the Download Center and you were affected by the PSModulePath bug, there’s hope for you, too. The PowerShell Team is expected to release a fix to restore your PSModulePath.

 

If you have questions about installing Windows PowerShell 5.0 or running any SAPIEN product with Windows PowerShell, be sure to post on our Windows PowerShell forum or the forum for your product.

June Blender is a technology evangelist at SAPIEN Technologies, Inc. You can reach her at This email address is being protected from spambots. You need JavaScript enabled to view it. or follow her on Twitter at @juneb_get_help.

If you have questions about our products, please post in our support forum.
For licensed customers, use the forum associated with your product in our Product Support Forums for Registered Customers.
For users of trial versions, please post in our Former and Future Customers - Questions forum.
Copyright © 2024 SAPIEN Technologies, Inc.