PowerShell: Upgrade WAC – your Office Web Apps Farm
Like most folks who upgrade their SharePoint 2013 farms after they have applied the latest SharePoint 2013 CUs to the SharePoint side of the environment they will usually still have 2 WAC servers and at least 3 WFM servers left to apply and configure updates. This may depend on release of the updates as the Service Bus and Workflow manager updates do not coincide with the monthly delivery of SharePoint 2013 CUs.
Upgrade-WAC.ps1
The reason for this post is to make it easy for me (not to forget) updating the WAC Servers / Office Web App Farm. Updating the Office Web App farm is somewhat unique in that you remove the farm prior to the installing the CU then create a new farm after the cumulative update installed
PowerShell Script
# Update-WAC.ps1 # Add July 2015 CU Import-Module -Name OfficeWebApps # Review the Current State of the Office Web App Environment Get-OfficeWebAppsFarm Get-OfficeWebAppsHost Get-OfficeWebAppsMachine cmd /c pause # Remove OfficeWebAppMachine prior to installing Cumulative Update Remove-OfficeWebAppsMachine cmd /c pause # Install the Cummulative Update while paused # Configure Office WebApp Farm after installing the updates # If using HTTP remove comment below # New-OfficeWebAppsFarm -InternalURL "http://wac.contoso.com" -AllowHTTP -EditingEnabled New-OfficeWebAppsFarm -InternalURL "https://wac.contoso.com" -ExternalURL "https://wac.contoso.com" -CertificateName "wac.contoso.com" -EditingEnabled cmd /c pause # Open IE to test and ensure the New OfficeWebApps Farm is configured $ie = New-Object -ComObject InternetExplorer.Application $ie.Navigate("https://wac.contoso.com/hosting/discovery.ashx") $ie.Visible = $true
If successful your browser will open and will look the example below
Download http://1drv.ms/1JCmcKm