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 (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

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