Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

How to find the version or build number for an Office Web Apps 2013 Farm

$
0
0

While working on a customer's issue with their Office Web Apps 2013 WAC farm, I was curious to find what patch level the Farm is on. After looking at all the WAC farm properties through PowerShell, I still couldn't figure out what the build number is!! Well here is a sample script that can help you find the build/version number of a WAC farm, this information can be helpful to check if a specific patch is installed besides going to the Control Panel and check installed packages :)

 

Function GetWacServerVersion

{

    $version= ((Get-ChildItemhklm:\software\microsoft\windows\currentversion\uninstall|

                  Where-Object {$_.PSChildName -Like "*WacServer"}) |

                  Get-ItemProperty).DisplayVersion 

    if (($version -eq $null) -or ($version.Length -eq 0)) 

    {

        Write-Error "WacServer DisplayVersion does not exist" 

        return;  

    }

    return new-object System.Version($version

GetWacServerVersion > $env:SystemDrive\wacver.txt

 

Disclaimer:

This Sample Code, scripts or any related information are provided for the purpose of illustration only and is not intended to be used in a production environment.  THIS SAMPLE CODE AND ANY RELATED INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.  We grant You a nonexclusive, royalty-free right to use and modify the Sample Code and to reproduce and distribute the object code form of the Sample Code, provided that You agree: (i) to not use Our name, logo, or trademarks to market Your software product in which the Sample Code is embedded; (ii) to include a valid copyright notice on Your software product in which the Sample Code is embedded; and (iii) to indemnify, hold harmless, and defend Us and Our suppliers from and against any claims or lawsuits, including attorneys’ fees, that arise or result from the use or distribution of the Sample Code.


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>