How to Check PowerShell Version? [Windows/Mac/Linux]


PowerShell Core is the shell from Windows that works on all environments - macOS, Linux and Windows.

If you want to check the version of PowerShell it's easy, follow the below steps,


1. For Windows

    Open PowerShell on Windows and type in the following command.

    $PSVersionTable.PSVersion

2. For Mac

    Open Terminal app on your Mac and type the below command.

    pwsh --version

    You should see the response like,

    PowerShell 7.3.6
    Know PowerShell Version on Mac

3. For Linux (Ubuntu or Unix-Like Systems)

    Open Terminal app on your Linux and type the below command.

    pwsh --version

    You should see the response like,

    PowerShell 7.3.6
-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap