判斷變更伺服器元件狀態的要求者

原始 KB 編號: 2958835

徵狀

在 Microsoft Exchange Server 2013 或更新版本中,您嘗試使用 Set-ServerComponentState 命令將伺服器元件Active的狀態變更為 。 命令完成時不會發生任何錯誤,不過元件仍會保持 Inactive

這大多是因為 中提供的 Set-ServerComponentState Requestor 名稱與原本變更狀態的 Requestor 不相符。

解決方案

在這種情況下,請使用下列命令來尋找已變更元件狀態的要求者:

(Get-ServerComponentState -Identity <ServerName> -Component <Component>).LocalStates

例如,在下列範例中,Monitoring and RecoveryActionsEnabled 元件為非使用中。

監視和復原ActionsEnabled元件的螢幕快照。

使用下列命令來尋找將監視元件狀態變更為 Inactive的要求者:

(Get-ServerComponentState -Identity Exch1 -Component Monitoring).LocalStates

尋找已變更狀態之要求者的螢幕快照。

現在您已知道要求者,請使用下列命令將監視元件的狀態變更為 Active

Set-ServerComponentState -Identity Exch1 -Component Monitoring -State Active -Requester Functional

使用下列命令確認元件為作用中:

Get-ServerComponentState -Identity exch1 -Component Monitoring).LocalStates

顯示元件為作用中的螢幕快照。

參考資料

如需深入瞭解 Exchange Server 2013 中的伺服器元件狀態,請參閱 Exchange 2013 中的伺服器元件狀態