Stop-ClusteredMailboxServer (RTM)

 

適用版本: Exchange Server 2007

上次修改主題的時間: 2007-08-29

本主題說明如何使用 Stop-ClusteredMailboxServer 指令程式來停止 Microsoft Exchange Server 2007 叢集信箱伺服器,而不需要在叢集中的被動節點上啟動它。

語法

stop-ClusteredMailboxServer -Identity <MailboxServerIdParameter> -StopReason <String> [-DomainController <Fqdn>]

詳細描述

由於資料中心設備失敗等問題或其他嚴重問題,Exchange 系統管理員有時候需要啟動或停止叢集信箱伺服器。在此情況下,系統管理員不想啟動被動伺服器 (例如,利用 Move-ClusteredMailboxServer 指令程式),而希望關閉所有叢集信箱伺服器作業。Stop-ClusteredMailboxServer 指令程式允許 Exchange 系統管理員在正常的狀態下關閉伺服器,並維持關閉。與 Move-ClusteredMailboxServer 指令程式或自動容錯移轉不同,發出 Stop-ClusteredMailboxServer 命令之後,重新啟動作業系統將不會導致 Exchange 重新連線。發出 Stop-ClusteredMailboxServer 命令後如要啟動伺服器,則系統管理員必須明確發出 Start-ClusteredMailboxServer 命令。

note附註:
系統管理員必須提供停止工作的原因,以記錄伺服器離線的原因。此原因會儲存在事件記錄中。

若要順利啟動 Stop-ClusteredMailboxServer 作業,必須符合下列條件:

  • 叢集信箱伺服器必須正在執行中 (上線或部份上線)。

  • 叢集必須運作正常並可存取。

  • 指定的叢集信箱伺服器必須存在。

  • 啟動作業時,指定的叢集信箱伺服器不得在節點之間進行轉換。

此指令程式可從系統管理工作站中執行。

若要執行 Stop-ClusteredMailboxServer 指令程式,必須對您使用的帳戶委派 Exchange Server 系統管理員角色及目標伺服器本機 Administrators 群組。如需管理 Microsoft Exchange Server 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

如需 Start-ClusteredMailboxServer 指令程式的相關資訊,請參閱 Start-ClusteredMailboxServer (RTM)

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.MailboxServerIdParameter

Identity 參數可指定所啟動之叢集信箱伺服器的名稱或 GUID。當此參數在已啟動信箱伺服器的電腦上執行時,可省略它。

StopReason

必要

System.String

必須指定 StopReason 參數,才能識別發出停止命令的原因。

Confirm

選用

Boolean

Confirm 參數會使得命令暫停處理,並要求系統管理員確認命令將進行的動作之後才會繼續處理。預設值為 $true。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

若要指定能找出叢集信箱伺服器之網域控制站的網域全名 (FQDN),請在命令中加入 DomainController 參數。

WhatIf

選用

Boolean

WhatIf 參數指示命令模擬它將對物件採取的動作。藉由使用 WhatIf 參數的方式,系統管理員不需實際套用變更,就能先檢視任何變更。預設值為 $true。

錯誤

錯誤 描述

Server '<CMSName>' is not available. The cluster may be unavailable or a communication problem may exist. This task cannot complete without communicating with the cluster.

由於通訊問題或叢集無法使用,工作無法連接至叢集。

Stop-ClusteredMailboxServer is unable to stop the specified clustered mailbox server because this task is only supported on servers running Exchange 2007 Server. <ServerName> is not running Exchange 2007 Server.

無法在指定的叢集信箱伺服器上執行要求的動作,因為只有執行 Exchange 2007 的伺服器才支援此工作。<ServerName> 沒有執行 Exchange 2007。

Access denied. The account used to run this task does not have sufficient privileges to get clustered mailbox server status from <ServerName>. Please use an account that has been assigned the Exchange Server Admin role.

使用者沒有 Exchange Server 系統管理員權限。

The operation could not be performed because '<CMSName>' could not be found on <DCFullName>. <CMSName> is a standalone mailbox server. This task will only work when executed against a clustered mailbox server.

指定的伺服器是獨立的信箱伺服器。

The operation could not be performed because '<CMSName>' could not be found on <DCFullName>. Stop-ClusteredMailboxServer was unable to stop the specified clustered mailbox server status because the specified server does not exist.

無法在指定的叢集信箱伺服器上執行所要求的作業,因為該伺服器不存在。指定的伺服器:<ServerName>。

Server '<CMSName>' is not a clustered mailbox server. This task will only work when executed against a clustered mailbox server.

無法在指定的叢集信箱伺服器上執行所要求的作業,因為指定的伺服器不是叢集信箱伺服器。指定的伺服器:<ServerName>。

The specified clustered mailbox server failed to stop or only partially stopped.

叢集信箱伺服器 <ServerName> 無法停止。只能停止部份 <ServerName>。

範例

下列程式碼範例會顯示如何因為資料中心停電,而停止名為 MailboxServer1 的信箱伺服器。

Stop-ClusteredMailboxServer -Identity:MailboxServer1 -StopReason:"DataCenter Power Outage"