在本地Microsoft Exchange Server组织和远程Exchange Server组织之间配置联合身份验证信任时,来自的用户无法看到远程组织中的用户的忙/闲信息。此外,以下错误将记录在本地 Exchange 服务器的事件日志中:事件 ID: 4001任务类别: 可用性服务级别: 错误关键字: 经典用户: N/A计算机: <Computer-Name>说明: \rocess Microsoft.Exchange.InfoWorker.Common.Delayed'1[System.String]:SMTP:user@contoso.com 失败。 返回的异常为 Microsoft.Exchange.InfoWorker.Common.Availability.AutoDiscoverFailedException:电子邮件地址的自动发现失败,SMTP:user@contoso.com 异常Microsoft.Exchange.InfoWorker.Common.Availability.AutoDiscoverFailedException:由于响应无效,对“https://autodiscover.right.com/autodiscover/autodiscover.svc/WSSecurity”自动发现服务的请求失败。此外,为远程林 Exchange 服务器上的可用性请求返回的 HTTP 500 响应在 W3SVC 日志中记录如下:
原因
出现此问题的原因是,在本地 Exchange Server 2010 组织中的客户端访问服务器上禁用了“EWS”虚拟目录或“自动发现”虚拟目录的 WSSecurity 属性。
解决方法
Exchange 2016 或 Exchange 2013若要解决此问题,请为远程组织中的每台服务器重置 Exchange 后端站点上的虚拟目录的 WSSecurity 身份验证。
-
打开 Windows Powershell 并添加 Exchange 管理单元。
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
-
使用 Set-WebServicesVirtualDirectory cmdlet 为 EWS 虚拟目录禁用 WSSecurity 身份验证。
Set-WebServicesVirtualDirectory "<ServerName>\ews (Exchange Back End)" -WSSecurityAuthentication:$False
-
使用 Set-WebServicesVirtualDirectory cmdlet 为 EWS 虚拟目录启用 WSSecurity 身份验证。
Set-WebServicesVirtualDirectory "<ServerName>\ews (Exchange Back End)" -WSSecurityAuthentication:$True
-
使用 Set-AutodiscoverVirtualDirectory cmdlet 为自动发现虚拟目录禁用 WSSecurity 身份验证。
Set-AutodiscoverVirtualDirectory "<ServerName>\Autodiscover (Exchange Back End)" -WSSecurityAuthentication:$False
-
使用 Set-AutodiscoverVirtualDirectory cmdlet 对自动发现虚拟目录进行 Eable WSSecurity 身份验证。
Set-AutodiscoverVirtualDirectory "<ServerName>\Autodiscover (Exchange Back End)" -WSSecurityAuthentication:$True
-
使用 Restart-WebAppPool cmdlet 重启应用程序池。
Restart-WebAppPool MSExchangeAutodiscoverAppPoolRestart-WebAppPool MSExchangeServicesAppPool
Exchange 2010若要解决此问题,请重置远程组织中每个客户端访问服务器上的虚拟目录的 WSSecurity 身份验证。
-
打开 Exchange 命令行管理程序。
-
使用 Set-WebServicesVirtualDirectory cmdlet 为 EWS 虚拟目录禁用 WSSecurity 身份验证。
Set-WebServicesVirtualDirectory "<ServerName>\ews (Default Web Site)" -WSSecurityAuthentication:$False
-
使用 Set-WebServicesVirtualDirectory cmdlet 为 EWS 虚拟目录启用 WSSecurity 身份验证。
Set-WebServicesVirtualDirectory "<ServerName>\ews (Default Web Site)" -WSSecurityAuthentication:$True
-
使用 Set-AutodiscoverVirtualDirectory cmdlet 为自动发现虚拟目录禁用 WSSecurity 身份验证。
Set-AutodiscoverVirtualDirectory "<ServerName>\Autodiscover (Default Web Site)" -WSSecurityAuthentication:$False
-
使用 Set-AutodiscoverVirtualDirectory cmdlet 为自动发现虚拟目录启用 WSSecurity 身份验证。
Set-AutodiscoverVirtualDirectory "<ServerName>\Autodiscover (Default Web Site)" -WSSecurityAuthentication:$True
-
使用以下语法重启应用程序池:
appcmd stop appPool /appPool.name:MSExchangeAutodiscoverAppPoolappcmd start appPool /appPool.name:MSExchangeAutodiscoverAppPoolappcmd stop appPool /appPool.name:MSExchangeServicesAppPoolappcmd start appPool /appPool.name:MSExchangeServicesAppPool