Cyprich.com

Occasionally Relevant Insights from a Software Builder

By

Getting the PowerShell Version

To find out which version of PowerShell is installed in your computer, you need to do more than just run it. When you start the command line interface, your lead to believe that version 1.0 is installed from the directory location displayed in the dialog box.

The text in the dialog box shows C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe, which would make it seem like you were running version 1.0. The best way to determine which version is installed is to run the PowerShell command line interface and execute the following command:

    $Host.Version

This will give you the major and minor versions, along with the build and revision.

image

One Response to Getting the PowerShell Version

  1. Loco deSane says:

    Get-Host does the same thing

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.