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 work primarily on a Windows 7 machine; sometimes on a Windows 2003 R2 server or a Windows 2008 R2 server. Its my understanding that Windows 7 and Windows 2008 both come with PowerShell 2, and maybe Windows 2003 comes with PowerShell 2. However, when I do a Run | Powershell, the title of the window that PowerShell runs in shows it using version 1 of PowerShell. How do I run version 2?

share|improve this question
    
Which OS is that on? What does $Host.Version say? –  Indrek Jun 18 '12 at 16:03
add comment

1 Answer

up vote 6 down vote accepted

I suspect what you mean is a path where PS is stored (that may be shown in a title). It has very little to do with actual PowerShell version. The best test is to type: $PSVersionTable.

screenshot

v1 > nothing displayed
v2, 3 and probably all future versions -> info about current version returned.

share|improve this answer
    
Thank you, I didn't know about $PSVersionTable. Handy. You're correct, when I issue that command I get version 2, which is all I have on this machine. Thanks again! –  Rod Jun 21 '12 at 19:02
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.