Tuesday, 17 September 2013

Retrieveing Versions

Overview:  I repeatedly need to determine versions of software and patches so this post holds common requests to verify versions that I need.

.NET framework versions installed:
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version -EA 0 | Where { $_.PSChildName -match '^(?!S)\p{L}'} | Select PSChildName, Version

Version of Powershell on a machine:

Version of your SharePoint farm:
 PS> (get-spfarm).buildversion

Version of Office Web Apps 2012/WCA:
The easiest way to get the OWA version is to make an http/https request to your WCA server and the version number is returned in the response header.
I use IE and fiddler so I can view the traffic to the url https://wca.demo.dev/m/met/particiapant.svc, you will get a 302, but your can see the version return in the https response header.
15.0.4481.1005 is WCA 2013 with the March 2013 CU.
15.0.4420.1017 is WCA 2013 RTM.

The approach below does not work:
((Get-ChildItem hklm:\software\microsoft\windows\currentversion\uninstall | Where-Object {$_.PSChildName -Like "*WacServer"}) | Get-ItemProperty).DisplayVersion

from http://blogs.technet.com/b/sammykailini/archive/2013/09/20/how-to-find-the-version-or-build-number-for-an-office-web-apps-2013-farm.aspx

It should show version 15.0.4481.1005 for me.  Note: I upgraded an original WCA RTM install.

A good PS approach:


Post a Comment