How to check the version of PowerShell
You can check the version of PowerShell with the value of
- Start PowerShell
- Type up to
- Use Tab key to complete the input
PS C:\> $PSVersionTable Name Value ---- ----- PSVersion 5.1.14409.1012
You can also check the version with
However, you need to be careful because the information displayed is “information about the host program that is running”.
Example: When running in VSCode’s “PowerShell Integrated Console”, the information displayed is different from that in PowerShell.