Stop-ClusteredMailboxServer (RTM)

 

适用于: Exchange Server 2007

上一次修改主题: 2007-08-29

本主题说明如何使用 Stop-ClusteredMailboxServer cmdlet 停止 Microsoft Exchange Server 2007 群集邮箱服务器而不必在群集中的被动节点上将其激活。

语法

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

详细说明

Exchange 管理员有时可能会由于数据中心中的设备故障或其他严重问题而需要启动或停止群集邮箱服务器。在这种情况下,管理员不希望激活被动服务器(例如使用 Move-ClusteredMailboxServer cmdlet),但是希望关闭所有群集邮箱服务器操作。Stop-ClusteredMailboxServer cmdlet 使 Exchange 管理员可以在干净的状态下关闭服务器并保持其关闭。与 Move-ClusteredMailboxServer cmdlet 或自动故障转移不同,在发出 Stop-ClusteredMailboxServer 命令之后,重新启动操作系统不会使 Exchange 重新联机。若要在发出 Stop-ClusteredMailboxServer 命令之后激活服务器,则管理员必须发出明确的 Start-ClusteredMailboxServer 命令。

note注意:
管理员必须提供停止任务的原因,以记录服务器脱机的原因。此原因会放入事件日志中。

若要成功地启动 Stop-ClusteredMailboxServer 操作,必须满足下列条件:

  • 群集邮箱服务器必须正在运行(联机或部分联机)。

  • 群集必须正常运行并且可以访问。

  • 必须存在指定的群集邮箱服务器。

  • 在启动操作时,指定的群集邮箱服务器不得在节点之间转移。

此 cmdlet 可以从管理工作站运行。

若要运行 Stop-ClusteredMailboxServer cmdlet,必须为您使用的帐户委派 Exchange Server 管理员角色以及目标服务器的本地 Administrators 组。有关管理 Microsoft Exchange Server 2007 所需的权限、角色委派以及权利的详细信息,请参阅权限注意事项

有关 Start-ClusteredMailboxServer cmdlet 的详细信息,请参阅 Start-ClusteredMailboxServer (RTM)

参数

参数 必需 类型 说明

Identity

必需

Microsoft.Exchange.Configuration.Tasks.MailboxServerIdParameter

Identity 参数指定要启动的群集邮箱服务器的名称或 GUID。在具有要启动的邮箱服务器的计算机上运行时,可以省略此参数。

StopReason

必需

System.String

必须指定 StopReason 参数来确定发出停止命令的原因。

Confirm

可选

布尔值

Confirm 参数将导致命令暂停处理,并且需要管理员在继续处理之前确认该命令将执行的操作。默认值为 $true。

DomainController

可选

Microsoft.Exchange.Data.Fqdn

若要指定域控制器的完全限定的域名 (FQDN) 以找到群集邮箱服务器,请在命令中包含 DomainController 参数。

WhatIf

可选

布尔值

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 Administrator 权限。

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.

无法在指定群集邮箱服务器上执行所请求的操作,因为该服务器不存在。指定的服务器:<服务器名>。

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"