Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

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
share|improve this answer
    
no, I am on Window web server 2008 R2 sp1 and I am still have 1.0 powershell so that's why I am looking for 2.0 , 3.0. I thing my post create confusion. please help me if you can. –  Gupta Jul 1 '12 at 21:26
1  
I think you are confused. Windows Server 2008 R2 SP1 includes Windows PowerShell 2.0 out of the box. –  Trevor Sullivan Jul 1 '12 at 21:33
    
yes I am confused with it's path %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe. –  Gupta Jul 1 '12 at 21:38
1  
Yup, you got it - the path still says v1.0. Ignore that :) –  Trevor Sullivan Jul 1 '12 at 23:44
add comment

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

  1. Before installing Windows Management Framework 3.0, uninstall any previous versions of Windows Management Framework 3.0.

  2. Install the full installation of Microsoft .NET Framework 4.0 (dotNetFx40_Full_setup.exe) from the Microsoft Download Center at http://go.microsoft.com/fwlink/?LinkID=212547.

  3. Or, install Microsoft .NET Framework 4.5 (dotNetFx45_Full_setup.exe) from the Microsoft Download Center at http://go.microsoft.com/fwlink/?LinkID=242919.

  4. Install Windows Management Framework 3.0 from the Microsoft Download Center at http://go.microsoft.com/fwlink/?LinkID=240290.

The page also describes how to install PowerShell 3.0 on Server 2008 (non-R2) and Windows 7.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.