Closed bkuppens closed 7 years ago
Hello, there always error on this code (Error on service url and no writelog for this section), could you modify code like this:
Write-Output "Opening Office Online Server (OOS)..."
$remoteuis = "m,o,oh,op,p,we,wv,x".Split(",")
$services = "diskcache/DiskCache.svc,dss/DocumentSessionService.svc,ecs/ExcelService.asmx,farmstatemanager/FarmStateManager.svc,metb/BroadcastStateService.svc,pptc/Viewing.svc,ppte/Editing.svch,wdss/WordDocumentSessionService.svc,wess/WordSaveService.svc,wvc/Conversion.svc".Split(",")
# Loop per WOPI
$wopis = Get-SPWOPIBinding | Select-Object ServerName -Unique
foreach ($w in $wopis.ServerName) {
foreach ($r in $remoteuis) {
NavigateTo "http://$w/$r/RemoteUIs.ashx"
NavigateTo "https://$w/$r/RemoteUIs.ashx"
}
foreach ($s in $services) {
NavigateTo ("http://$w"+":809/$s")
NavigateTo ("https://$w"+":810/$s")
}
}
The code for iterating over the wopi bindings contains some errors which causes exceptions:
$wopis = Get-SPWOPIBinding | Select-Object ServerName -Unique foreach ($w in $wopis) { foreach ($r in $remoteuis) { NavigateTo "http://$w/$r/RemoteUIs.ashx" NavigateTo "https://$w/$r/RemoteUIs.ashx" } foreach ($s in $services) { NavigateTo "http://$w"+":809/$s/" NavigateTo "https://$w"+":810/$s/" } }