How I can upgrade PowerShell on Windows Server 2008 R2?
PowerShell 2.0 is included with Server 2008 R2. PowerShell 3.0 is included with Windows 8 and Server 2012. PowerShell 3.0 can be installed on Server 2008 R2.
The following instructions are excerpted from this page: http://technet.microsoft.com/en-us/library/hh847837.aspx
Before installing Windows Management Framework 3.0, uninstall any previous versions of Windows Management Framework 3.0.
Install the full installation of Microsoft .NET Framework 4.0 (dotNetFx40_Full_setup.exe) from the Microsoft Download Center at https://go.microsoft.com/fwlink/?LinkID=212547.
Or, install Microsoft .NET Framework 4.5 (dotNetFx45_Full_setup.exe) from the Microsoft Download Center at https://go.microsoft.com/fwlink/?LinkID=242919.
Install Windows Management Framework 3.0 from the Microsoft Download Center at https://www.microsoft.com/en-us/download/details.aspx?id=34595.
The page also describes how to install PowerShell 3.0 on Server 2008 (non-R2) and Windows 7.
PowerShell 4.0 is the final version available for Windows Server 2008 R2.
The pre-requisites are:
Windows 2008 R2 Service Pack 1
.NET 4.5
It is installed as part of Windows Management Framework 4.0.
That's impossible. Windows PowerShell 2.0 is included in Windows Server 2008 R2. You cannot install Windows PowerShell 1.0 in 2008 R2 in any supported fashion.
To verify the version of PowerShell you're running, simply echo the $host
variable.
Name : Windows PowerShell ISE Host
Version : 3.0
InstanceId : 711f19be-3f19-4612-bea3-61899c1a73c2
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace