How to upgrade PowerShell on Windows Server 2008 R2

powershell

I am using Windows PowerShell 1.0 in Windows Server 2008 R2. I have tried PowerShell 3.0 in Windows 8 and it looks good to me.

Now the question is: How I can upgrade PowerShell on the Windows Server 2008 R2 machine? If 3.0 is not available for me, then is there any way to upgrade to the latest available version?


Name             : ConsoleHost
Version          : 2.0
InstanceId       : f0b6480c-be55-429d-a197-65604de5887e
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Best Answer

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