0

Today one of the SharePoint farm was handed over to me but I was not able find the office web apps server.

So can anyone tell me how to find office web apps server in existing SharePoint farm.

2 Answers 2

1

You can use a couple of commands to get the details of the Office Online server.

(Get-OfficeWebAppsFarm).Machines

The above command will return details about the servers that are members of the Office Online Server farm. These details include the health status and roles held by each server.

Import-Module OfficeWebApps
Get-OfficeWebAppsFarm

The above command will return the details about the OfficeWebAppsFarm object.

Example something like below information you will get about OOS server:

Get-webapps-powershell

Image source

Get-OfficeWebAppsMachine

The Get-OfficeWebAppsMachine cmdlet returns details about the current server that is in an Office Online Server farm. These details include the roles and health status of the current server and the name of the master server for the farm.

Get-SPWOPIZone | Get-SPWOPIBinding

This example returns a list of bindings that were created on the current SharePoint farm where this cmdlet is run for the zone configured for the WOPI application.

For more details refer to the below MSDN articles:

If you get the "The term 'Get-OfficeWebAppsMachine' is not recognized as the name of a cmdlet, function, script file, or operable program." run the below command:

$p=$Env:PSModulePath
$p+=";C:\Program Files\Microsoft Office Web Apps\AdminModule"
[Environment]::SetEnvironmentVariable("PSModulePath",$p)

Source:

Issues with OWA server 2013

6
  • Hi, I tried the above commands but I am getting the following errors. The term 'Get-OfficeWebAppsMachine' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. The term 'Get-SPWOPIBinding' is not recognized as the name of a cmdlet, functio n, script file, or operable program. Check the spelling of the name, or if a pa th was included, verify that the path is correct and try again.
    – user17274
    Apr 29, 2020 at 6:38
  • Try to run this command: the $p=$Env:PSModulePath $p+=";C:\Program Files\Microsoft Office Web Apps\AdminModule" [Environment]::SetEnvironmentVariable("PSModulePath",$p) ,refer this thread for more details: sharepoint.stackexchange.com/questions/227650/…
    – SP 2022
    Apr 29, 2020 at 7:10
  • Folders are not there in this path C:\Program Files\Microsoft Office Web Apps\AdminModule . I am actually checking this on sharepoint 2010 farm.
    – user17274
    Apr 29, 2020 at 7:26
  • In 2010 the path could be different, check if you find any similar path there
    – SP 2022
    Apr 29, 2020 at 7:54
  • Before the command try to include Import-Module OfficeWebApps
    – SP 2022
    Apr 29, 2020 at 9:05
0

You can try the following command: Get-OfficeWebAppsFarm , it should return an object containing details about the server(s) that are part of the Office Web Apps installation.

1
  • Hi, I tried the above command but I am getting the following error. The term 'Get-OfficeWebAppsFarm' is not recognized as the name of a cmdlet, fun ction, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    – user17274
    Apr 29, 2020 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.