Hi krishna veni,
You’re absolutely correct! Running:
$PSVersionTable.PSVersion
is the standard way to check the installed PowerShell version. It will return the Major, Minor, Build, and Revision numbers.
A few extra tips you might find helpful:
- Where to run it: Open PowerShell or Windows Terminal, then enter the command.
- Alternative method:
Get-Host | Select-Object Version
- PowerShell editions:
- Windows PowerShell (usually version 5.1) comes preinstalled on Windows 11.
- PowerShell (Core) (7.x and above) is cross-platform and installed separately.
- Reference: Check your PowerShell version
Hope this helps! If this answers your question, feel free to interact with the answer so others can benefit too.