How to Install Windows PowerShell 4.0
Introduction
Windows PowerShell 4.0 is part of the Windows Management Framework 4.0, which includes the following:
- Windows PowerShell
- Windows PowerShell Integrated Scripting Environment (ISE)
- Windows PowerShell Web Services (Management OData IIS Extension)
- Windows Remote Management (WinRM)
- Windows Management Infrastructure (WMI)
- Server Manager WMI provider
- Windows PowerShell Desired State Configuration (DSC)
Windows Management Framework 4.0 supportability matrix
Operating system |
Windows PowerShell 4.0 available |
Prerequisites |
Installation file |
Windows Server 2012 R2 |
Built-in |
N/A |
N/A |
Windows 8.1 |
Built-in |
N/A |
N/A |
Windows Server 2012 |
Yes, part of WMF 4.0 |
.NET 4.5 (built-in) |
|
Windows 8 |
No, user must upgrade to Windows 8.1 |
N/A |
N/A |
Windows Server 2008 R2 |
Yes, part of WMF 4.0 |
||
Windows 7 |
Yes, part of WMF 4.0 |
Installation
- Verify that all prerequisites are installed according to the Windows Management Framework 4.0 supportability matrix above. To verify the presence of .NET 4.5, you may use the Test-Net45 function available in this article on the Hey Scripting Guy! Blog
- Run the installation file applicable to the operating system
- Reboot the computer, start Windows PowerShell and verify that the output of $PSVersionTable shows 4.0 as the value of the PSVersion property
Known issues
Installation succeeds even if .NET 4.5 is not installed
Scenario: Installing WMF 4.0 on a computer that is not running .NET Framework 4.5 will report that the installation is successful, but the components of WMF 4.0 (such as Windows PowerShell, WMI, etc.) will not be updated.
Solution: Install .NET Framework 4.5, and then run the WMF 4.0 installer again.
More information:
Compatibility issues
There are known compatibility issues with several Microsoft server-class applications:
- System Center 2012 Configuration Manager (not including SP1)
- System Center Virtual Machine Manager 2008 R2 (including SP1)
- Microsoft Exchange Server 2013, Microsoft Exchange Server 2010, and Microsoft Exchange Server 2007
- Microsoft SharePoint Server 2013 and Microsoft SharePoint Server 2010
- Windows Small Business Server 2011 Standard
Read the WMF 4.0 Release Notes for more information.
Related KB articles
Update is available that prevents the PSModulePath environment variable from being reset when you upgrade WMF 3.0 to WMF 4.0 and then uninstall WMF 4.0 in Windows http://support.microsoft.com/kb/2872047
Update prevents the “PSModulePath” environment variables from being reset after you uninstall WMF 4.0 in Windows
http://support.microsoft.com/kb/2872035