Thursday, August 29, 2013

How to upgrade Windows 2008 R2 SP1 to Powershell V4

I am just back from my holidays and I am immediately confronted to the need of upgrading Powershell from V3 to V4 on one of my Windows 2008 R2 workstations. I quickly discovered on that since June the Windows Management Framework 4 (which contains Powershell V4) is available for download as a standalone package.

After downloading the appropriate MSU (which on x64-based computers that are running Windows 7 SP1 or Windows Server 2008 R2 SP1 is named Windows6.1-KB2819745-x64-MultiPkg.msu), I fire the installation and Next Next Next Finish through it.

Unfortunately when I start my Powershell console I see an annoying thing: the copyright date is still 2012, while I know very well that the last version of Powershell has been released in 2013.

After going through the WMF 4.0 Preview Release Notes document (which I should have read before!), I discover that I went too fast and forgot to install DotNet4.5, which is a prerequisite along with the Service Pack 1 (which I already have).

So, to rectify this, I install that package, and then install again the WMF 4.0. At the end of the install I am asked to reboot. When the system is back up and running, I get the expected Powershell version running:
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\> $host

Name             : ConsoleHost
Version          : 4.0
InstanceId       : 75344508-fdaa-45b5-a3fb-1f9fc85e37cb
And here's the output of $PSversiontable:

Just wanted to share this experience in case somebody else slips on this. Haste makes waste.
Related Posts Plugin for WordPress, Blogger...