Which PowerShell Version Am I Running

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

As PowerShell v.2 becomes more common , you may want to check which PowerShell version a machine is running. Use this to differentiate between v.1 and higher versions from within PowerShell:

$isV2 = test-path variable:\psversiontable

Check this registry key if you need to determine the version from outside PowerShell:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine

Or take a look in our library and check out Alexander's comprehensive solution.

Twitter This Tip! ReTweet this Tip!


Posted Sep 11 2009, 08:00 AM by ps1

Comments

Dreaming in PowerShell wrote Part 1 - What's New In PowerShell V2: Computer Cmdlets
on 09-29-2009 5:09 AM

PowerShell V2 contains a lot of new cmdlets and has added many more useful parameters to existing cmdlets

Dreaming in PowerShell wrote Part 1 - What's New In PowerShell V2: Computer Cmdlets
on 09-29-2009 5:17 AM

PowerShell V2 contains a lot of new cmdlets and has added many more useful parameters to existing cmdlets

Enhancement to launching PowerShell scripts from Far Manager – Pavel Chuchuva wrote Enhancement to launching PowerShell scripts from Far Manager – Pavel Chuchuva
on 03-26-2010 5:55 AM

Pingback from  Enhancement to launching PowerShell scripts from Far Manager – Pavel Chuchuva

Tata Dano wrote re: Which PowerShell Version Am I Running
on 09-18-2010 4:18 PM

Yeah..it said its true. So I am using PS V2. Thanks.

Copyright 2012 PowerShell.com. All rights reserved.