Tech Blog‎ > ‎

PowerShell - View Current Version.

posted Aug 28, 2009, 11:48 AM by Victor Zakharov   [ updated Aug 28, 2009, 12:06 PM ]
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:


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:

Windows 2003 R2 Standard SP2, PS 2.0 CTP3
Comments