安装 Office Online Server

  • Post author:
  • Post category:其他


通过安装 Office Online Server 使用户可以在 Exchange Outlook 网页版中查看和编辑受支持的文件附件,而无需先下载这些附件,也无需在本地安装相关程序。

安装 Office Online Server 必备组件:

1)下载安装Visual C++ Redistributable for Visual Studio 2015:

Start-BitsTransfer –Source  http://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe  -Destination c:\vc_redist.x64.exe

运行安装vc_redist.x64.exe

2)安装必需的操作系统功能:

Install-WindowsFeature NET-Framework-45-Features,Web-Server, Web-Mgmt-Tools, Web-Mgmt-Console, Web-WebServer, Web-Common-Http, Web-Default-Doc, Web-Static-Content, Web-Performance, Web-Stat-Compression, Web-Dyn-Compression, Web-Security, Web-Filtering, Web-Windows-Auth, Web-App-Dev, Web-Net-Ext45, Web-Asp-Net45, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Includes, InkandHandwritingServices, Windows-Identity-Foundation  –Restart

3)安装Office Online Server 2016

4)申请并导入证书

5)打开 Windows PowerShell 并运行以下命令。运行命令时,使用您自己的去替换示例 FQDN 和证书友好名称:

New-OfficeWebAppsFarm -InternalUrl “https://sen-oos.sen.hi.cn” -ExternalUrl “https://oos.sen.hi.cn” -CertificateName “oos_cert”   –EditingEnabled

注:windows server 2016 RTM 没有”Ink and Handwriting Services”(InkandHandwritingServices)功能导致无法启动office oline服务,运行上述命令时出现如下错误:

New-OfficeWebAppsFarm : The operation failed. The server did not meet the following prerequisites:

– The “Ink and Handwriting Services” Windows Server Feature must be installed and enabled.

At line:1 char:1

+ New-OfficeWebAppsFarm -InternalUrl “https://sen-oos.sen.hi.cn” -Exter …

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo          : NotInstalled: (:) [New-OfficeWebAppsFarm], InvalidOperationException

+ FullyQualifiedErrorId : PrerequisiteFailure,Microsoft.Office.Web.Apps.Administration.NewFarmCommand


Get-WindowsFeature | Where-Object {$_.Name -like “*ink*”}

6.在邮箱服务器级别配置 Office Online Server 终结点:

打开 Exchange 命令行管理程序并运行以下命令。使用您自己的服务器名称和 URL 替换示例服务器名称和 URL:


Set-MailboxServer sen-ex01 –WacDiscoveryEndpoint  “https://oos.sen.hi.cn/hosting/discovery”

Restart-WebAppPool MsExchangeOwaAppPool

7.在Exchange组织级别配置 Office Online Server 终结点:


Set-OrganizationConfig –WacDiscoveryEndpoint  “https://oos.sen.hi.cn/hosting/discovery”

Restart-WebAppPool MsExchangeOwaAppPool