People often ask me how to find the Powershell version. The questions might be like -
How to find the Powershell version?
What version of Powershell I am using?
Is there any way to find Powershell version?
Stop! I am telling you. This is just a small command -
Output:
Major Minor Build Revision
----- ----- ----- --------
2 2 0 1358
Again, there should no more doubts, Major is the one which you have to look. Ok, let me simplify it.
Output:
Powershell 2.0
There should not be any doubts now :).
How to find the Powershell version?
What version of Powershell I am using?
Is there any way to find Powershell version?
Stop! I am telling you. This is just a small command -
- clear
- $Host.Version
Major Minor Build Revision
----- ----- ----- --------
2 2 0 1358
Again, there should no more doubts, Major is the one which you have to look. Ok, let me simplify it.
- clear
- $Host.Version | foreach { "Powershell " + $_.Major + ".0" }
Powershell 2.0
There should not be any doubts now :).
Thanks a lot, simple but effective!
ReplyDelete