原始 KB 数: 3067263
现象
当管理员在 Microsoft Exchange Server 2013 环境中登录服务器,然后尝试运行需要代理到其他后端邮箱服务器的 Windows PowerShell cmdlet(例如,管理员尝试运行 set-userphoto
),该操作将失败,并且管理员收到类似于以下内容的错误:
Error on proxy command 'Set-Mailbox -Type:'Shared' -Identity: <ID>
-Confirm:$False -Force:$True' to server Exchange_Server: Server version <version number>, Proxy method RPS:
The WinRM client cannot process the request. The connection string should be of the form
[transport://]host[:port][/suffix] where transport is one of "http" or "https". Transport, port and suffix are optional. The host may be a hostname or an IP address. For IPv6 addresses, enclose the address in brackets - e.g. "http://[1::2]:80/wsman". Change the connection string and try the request again.
原因
出现此问题的原因是当前 Exchange 管理员的访问令牌太大,以至于超出了 Windows 远程管理(WinRM)组件中的连接字符串长度限制。 连接字符串长度限制硬编码为 2,048 字节。
解决方法
若要解决此问题,请使用以下一个或多个方法。
方法 1:安装 Exchange Server 2013 累积更新 2 或更高版本的累积更新
在 Exchange Server 2013 累积更新 2 中,添加了一项功能来压缩访问令牌。 但是,如果令牌仍大于 WinRM 中的限制,即使在压缩后,该错误也会继续发生。 在这种情况下,请使用方法 2 或方法 3 解决此问题。
方法 2:减少 Exchange 管理员所属的组数
方法 3:创建新的 Exchange 管理员帐户
创建一个新帐户以供 Exchange 管理使用,并确保此帐户仅是所需组的最小数目的成员。
状态
Microsoft 已经确认这是一个列于“适用范围”部分的 Microsoft 产品问题。