For Windows 10/11:
- Open PowerShell, by typing Windows PowerShell in Search,
- Now run the command: Get-Host | Select-Object Version
- You should get the version of PowerShell as a result.
For macOS:
- Open Terminal App,
- Now switch to Powershell by typing: PWSH
- Type the command Get-Host | Select-Object Version
- You should get the version of PowerShell as a result.
Example:% PWSH PowerShell 7.2.1 Copyright (c) Microsoft Corporation. https://aka.ms/powershell Type 'help' to get help.

Using $PSVersionTable
PS /Users/code2care> $PSVersionTable
Name Value
---- -----
PSVersion 7.2.1
PSEdition Core
GitCommitId 7.2.1
OS Darwin 21.4.0 Darwin Kernel Version 21.4.0: Mon…
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
- Fix PowerShell - .ps1 cannot be loaded because running scripts is disabled on this system
- How to Open PowerShell on Mac?
- Download Google Chrome setup exe file using PowerShell
- Connect Azure AD (Active Directory) for PowerShell
- How to check PowerShell version
- Update Powershell Using Command Line
- How to add sleep in Powershell Script
- How to switch to Powershell on Mac Terminal
- Know installed PowerShell Version on Mac
- How to install powershell on macOS
- PowerShell ps1 script is not digitally signed, you cannot run this script on the current system
- How to upgrade PowerShell on Mac
- How to Identify installed PowerShell version
- PowerShell on Mac: The term get-service is not recognized as a name of a cmdlet, function, script file, or executable program
- Run JumpCloud Commands in Powershell
- [Fix] Powershell - Term winget is not recognized as the name of a cmdlet function or script file
- [fix] Microsoft Error Code 0x80004005 - Unspecified error - Microsoft
- How to change default browser on Mac Monterey - MacOS
- Create Symbolic Link using Terminal Command - MacOS
- Fibonacci series from 1 to 500 table - Html
- Unable to find image docker latest locally - Docker
- Spring Boot: Setting up JDBCTemplate with MySQL Tutorial - Java
- Health Status Page for OpenAI ChatGPT or GPT 4 - HowTos
- SharePoint Online REST API not returning all list items and limit to only 100 rows - SharePoint