當您執行 Exchange 維護腳本或 Set-ServerComponentState 時的事件 7031

原始 KB 編號: 4043629

徵狀

當您執行下列其中一項動作時,Microsoft Exchange 前端傳輸服務會損毀:

此問題發生在下列產品中:

  • Microsoft Exchange Server 2016 年
  • Exchange Server 2013 (CU) 6 或更新版本 CU 的累積更新

發生問題時,會記錄事件 7031:

Log Name: System  
Source: Service Control Manager  
Description:  
The Microsoft Exchange Frontend Transport service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 5000 milliseconds: Restart the service.

Set-ServerComponentState 結束前端傳輸服務的範例

  • Set-ServerComponentState -Identity <ServerName> -Component ServerWideOffline -State Inactive -Requester Maintenance

  • Set-ServerComponentState -Identity <ServerName> -Component ServerWideOffline -State Active -Requester Maintenance

  • Set-ServerComponentState -Identity <ServerName> -Component ServerWideOffline -State Inactive -Requester Functional

前兩個命令包含在 Exchange 2013 DAG 維護腳本中。 因此,當您執行文本時,會遇到此問題。

解決方案

這是設計上的問題,因為從 CU6 開始,Exchange Server 2016 和 Exchange Server 2013 中的程式碼變更。