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