7、創(chuàng )建 Office Web Apps Server 服務(wù)器場(chǎng),輸入命令如下:New-OfficeWebAppsFarm-InternalUrl "
8、驗證是否成功創(chuàng )建了 Office Web Apps Server 服務(wù)器場(chǎng)打開(kāi)網(wǎng)頁(yè)
https://owas.trsa.com.cn/hosting/discovery,
在 Web 瀏覽器中看到 Web 應用程序開(kāi)放平臺接口 (WOPI) 發(fā)現 XML文件。該文件的前幾行如下示例,則說(shuō)明服務(wù)器場(chǎng)創(chuàng )建成功。
9、使用 Office Web Apps Server 在 Outlook Web App 中呈現附件,必須指定 Office WebApps Server 的 URL,輸入以下命令,
之后我們在驗證是否已正確配置 Office Web App Server URL,OK,設置完成。
10、對使用“專(zhuān)用”選項、“公用”選項登錄 Outlook Web App 的用戶(hù),在服務(wù)器 cas01和cas02(cas01和cas02為兩臺前端客戶(hù)端訪(fǎng)問(wèn)服務(wù)器)的默認 Outlook Web App 虛擬目錄上啟用 Office WebApps Server 呈現,最好在檢查是否正確配置了 Office Web App 服務(wù)器渲染。命令如下:
Set-OwaVirtualDirectory "cas01\owa (Default Web Site)"-WacViewingOnPrivateComputersEnabled $true
Set-OwaVirtualDirectory "cas01\owa (Default Web Site)"-WacViewingOnPublicComputersEnabled $true
Get-OwaVirtualDirectory "cas01\owa (Default Web Site)" |Format-List Name,WacViewing*
Set-OwaVirtualDirectory "cas02\owa (Default Web Site)"-WacViewingOnPrivateComputersEnabled $true
Set-OwaVirtualDirectory "cas02\owa (Default Web Site)"-WacViewingOnPublicComputersEnabled $true
Get-OwaVirtualDirectory "cas02\owa (Default Web Site)" |Format-List Name,WacViewing*
11、所有步驟完成后,我們檢查一下是否附件可以預覽,如果不能正確預覽,請重啟owas服務(wù)器及exchange服務(wù)器。從下圖我們看到我們的附件已經(jīng)正常顯示出來(lái)了,PPT可以方便的在exchange里面預覽,翻頁(yè),實(shí)驗完成。