Download for Powershell v2 for Windows 7? No need... It's already there!

Download for Powershell v2 for Windows 7? No need... It's already there!

  • Comments 3
  • Likes

A while back, Microsoft announced the release of PowerShell v2 for Windows XP, Windows Server 2003, Windows Vista, and Windows Server 2008 (see http://go.microsoft.com/fwlink/?LinkID=151321).

However, it is not clear to everyone that Powershell v2 is already part of Windows 7 and Windows Server 2008 R2.

I have seen people still asking for the link for PowerShell v2 for Windows 7 and Windows Server 2008 R2. Such download does not exist, since the PowerShell included in the OS is already v2.

Part of this confusion may be due to the fact that the folder in Windows 7 is still called "C:\windows\System32\WindowsPowerShell\v1.0". Maybe it's the fact that we still use the "PS1" file extension. Maybe it's the fact that the file version number for PowerShell.exe is actually "6.1.7600".

Just believe that v2 is already there... OK, maybe you don't believe me. Here's a little cmdlet to confirm it for you. You can launch PowerShell and use "get-host".

That should make it perfectly clear :-)

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Thank you and thank you for this posting!  Here's why:

    Count me faked out on two accounts after upgrading from 2.0 CTP3 to 2.0 RTM on my Windows XP laptop:

    1.  When invoking PowerShell from a 3rd-party add-on, the title bar

    said "C:\WINDOWS\system32\WindowsPowerShell\v1.0" and that's where it is on my XP machine, not just Windows 7/Server 2008 R2 as you noted above.  I remember thinking, "What went wrong with the 2.0 installation?"

    2.  The 2.0 RTM installation places the Windows PowerShell icon inside a program group that is located in Accessories, whereas the beta installs simply placed a PowerShell icon right off the Programs menu.  Thus I couldn't find the PowerShell icon (but was always too busy to do a full-blown search)/.

    Thanks again for clearing up a mystery for me.

  • Actually, it's better to check PSVersion property of automatic variable $PSVersionTable:

    PS> $PSVersionTable

    Name                           Value

    ----                           -----

    CLRVersion                     2.0.50727.4927

    BuildVersion                   6.1.7600.16385

    PSVersion                      2.0

    WSManStackVersion              2.0

    PSCompatibleVersions           {1.0, 2.0}

    SerializationVersion           1.1.0.1

    PSRemotingProtocolVersion      2.1

    If the $PSVersionTable variable doesn't exist, then you are running V1. If it does exist, then the version will be available as $PSVersionTable.PSVersion.

    Get-PSVersion - http://powershell.com/cs/media/p/2617.aspx

    -aleksandar

  • Correction - in my quest to download PowerShell, I found it is already available on Windows 7.

    See these two resources:

    blogs.technet.com/.../download-for-powershell-v2-for-windows-7-no-need-it-s-already-there.aspx