How to Determine PowerShell Version?

Open PowerShell

Run `$PSVersionTable.PSVersion`

Check the `Major`, `Minor`, `Build`, and `Revision` values

Run `$PSVersionTable` for full version details

Run `Get-Host` and check the `Version` value

Run `$PSVersionTable.PSEdition` to see if it is `Desktop` or `Core`

In Windows PowerShell, run `[System.Environment]::Version` for the .NET version

In PowerShell 7+, run `$PSVersionTable.GitCommitId` for the build identifier

Suggested for You

Trending Today