遠端 PowerShell Cmdlet 在 Exchange Server 2013 環境中失敗

原始 KB 編號: 3067263

徵狀

當系統管理員在 Microsoft Exchange Server 2013 環境中登入伺服器,然後嘗試執行需要 Proxy 至不同後端信箱伺服器的 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 產品確實有上述問題。