This page looks best with JavaScript enabled

PowerShell - view current version

 ·   ·  ☕ 1 min read

Introduction

I’m usually lazy to remember which version of PowerShell (if any) was installed on each and every server in our site. Because each generation of OS has its own way to install/reinstall PowerShell, sometimes I need to see if it’s anything there already and I need to perform a clean up.

Procedure

  1. Open PowerShell.
  2. Type the following: $host.version
  3. Press ENTER.

You should get something like this:

powershell versionv

Windows 7 Enterprise, PS 2.0 RTM

Just Curious

Why do versions 2.0 RTM and 2.0 CTP3 have the same PowerShell version? Shouldn’t there be some difference in either Build or Revision number? How did they keep track of it until release? Well, for now it’s all just a mystery for me:

powershell version - CTP

Windows 2003 R2 Standard SP2, PS 2.0 CTP3


Victor Zakharov
WRITTEN BY
Victor Zakharov
Web Developer (Angular/.NET)