Written
July 24, 2015
Thanks!
I thought to add a switch to 'translate' the version No., worked nice :)
$OWASVersionNo = "N/A"
$OWASVersionName = "N/A"
$OWASVersionNo = $x.Headers["X-OfficeVersion"]
Switch ($OWASVersionNo) {
"15.0.4420.1007" {$OWASVersionName = "RTM"}
"15.0.4481.1005" {$OWASVersionName = "March 2013 Public Update (1)"}
"15.0.4481.1508" {$OWASVersionName = "April 2013 Update"}
"15.0.4535.1000" {$OWASVersionName = "August 2013 Hotfix"}
"15.0.4551.1003" {$OWASVersionName = "October 2013 Cumulative Update (2)"}
"15.0.4551.1005" {$OWASVersionName = "November 2013 Update (3)"}
"15.0.4551.1508" {$OWASVersionName = "December 2013 Hotfix"}
"15.0.4551.1515" {$OWASVersionName = "January 2014 Security Update"}
"15.0.4569.1001" {$OWASVersionName = "Service Pack 1 Preview"}
"15.0.4569.1506" {$OWASVersionName = "Service Pack 1"}
"15.0.4571.1502" {$OWASVersionName = "Service Pack 1 - Rerelease"}
"15.0.4605.1001" {$OWASVersionName = "April 2014 Public Update"}
"15.0.4615.1001" {$OWASVersionName = "May 2014 Public Update"}
"15.0.4623.1001" {$OWASVersionName = "June 2014 Cumulative Update"}
"15.0.4631.1000" {$OWASVersionName = "July 2014 Cumulative Update"}
"15.0.4675.1000" {$OWASVersionName = "August 2014 Cumulative Update"}
"15.0.4693.1000" {$OWASVersionName = "January 2015 Cumulative Update"}
"15.0.4693.1001" {$OWASVersionName = "February 2015 Cumulative Update"}
"15.0.4701.1000" {$OWASVersionName = "March 2015 Cumulative Update"}
"15.0.4711.1002" {$OWASVersionName = "April 2015 Cumulative Update"}
"15.0.4719.1002" {$OWASVersionName = "May 2015 Security Update"}
"15.0.4737.1000" {$OWASVersionName = "July 2015 Cumulative Update"}
}
Write-Host "OWAS Version Number: "$OWASVersionNo -ForegroundColor Green
Write-Host "OWAS Version Name: "$OWASVersionName -ForegroundColor Green
Write-Host "For Updated Versions List: http://blog.chrislehr.com/2015/01/office-web-apps-server-2013-updates-and.html" -ForegroundColor Green