I was struggling with an Office Online Server recently that didn’t want to talk to me. I was able to create the OfficeWebAppsFarm OK, but then couldn’t query it (as I wanted to check its health):
PS C:\> Get-OfficeWebAppsFarm
Get-OfficeWebAppsFarm : Could not read settings from WEBAPPS. The destination is unreachable.
The fix was a simple one: the WWW service was stopped. As soon as I restarted it, I was able to execute the ‘get-farm’ commandlet OK.
PS C:\> get-service W3SVC
Status Name DisplayName
------ ---- -----------
Stopped 3SVC World Wide Web Publishing Service
PS C:\> start-service W3SVC