队列的过程Procedures for queues

在 Exchange Server 中,可以使用 Exchange 工具箱中的队列查看器或 Exchange 命令行管理程序来管理队列。In Exchange Server, you can use the Queue Viewer in the Exchange Toolbox or the Exchange Management Shell to manage queues. 有关队列的详细信息,请参阅队列和队列中的邮件For more information about queues, see Queues and messages in queues.

本主题介绍如何在队列中执行以下过程:This topic describes how to perform the following procedures on queues:

  • 查看队列View queues

  • 重试队列:当 Exchange 服务器无法连接到下一个跃点时,队列将处于 "重试" 状态,并且服务器会定期尝试连接并传递邮件。Retry queues: When an Exchange server can't connect to the next hop, the queue is put into a status of Retry, and the server periodically tries to connect and deliver the messages. 当您手动重试队列时,将通过强制立即连接尝试来覆盖计划的重试时间。When you manually retry a queue, you override the scheduled retry time by forcing an immediate connection attempt.

  • 重新提交队列:重新提交队列类似于重试队列,只是将邮件发送回提交队列,以便分类程序进行处理,而不是立即尝试连接到下一个跃点。Resubmit queues: Resubmitting a queue is similar to retrying a queue, except the messages are sent back to the Submission queue for the categorizer to process, instead of immediately trying to connect to the next hop. 如果网络基础结构的更改阻止传递队列中的邮件,这将非常有用。This is useful if changes to your network infrastructure are preventing the messages in the queue from being delivered.

  • 挂起队列:新邮件可以进入队列,在传输到下一跃点的操作中的邮件将离开队列,但否则,邮件将不会离开队列,直到手动恢复队列为止。Suspend queues: New messages can enter the queue, and messages that are in the act of being transmitted to the next hop will leave the queue, but otherwise, messages won't leave the queue until the queue is manually resumed.

  • 恢复队列:针对状态为 "已挂起" 的队列重新启动传出邮件传递。Resume queues: Restart outgoing message delivery for a queue that has a status of Suspended. 恢复队列时,队列中邮件的状态不会更改(例如,状态为 "已挂起" 的邮件将保持挂起,不会离开队列)。When you resume a queue, the status of messages in the queue doesn't change (for example, messages that have a status of Suspended remain suspended and won't leave the queue).

有关队列中邮件的过程,请参阅邮件在队列中的过程For procedures on messages in queues, see Procedures for messages in queues.

在开始之前,您需要知道什么?What do you need to know before you begin?

  • 估计完成每个步骤时间:5 分钟Estimated time to complete each procedure: 5 minutes

  • 若要查找并打开 Exchange 工具箱,请使用以下过程之一:To find and open the Exchange Toolbox, use one of the following procedures:

    • Windows 10:单击 "启动 > 所有应用程序 > Microsoft <Version> > exchange Server exchange 工具箱"Windows 10: Click Start > All Apps > Microsoft Exchange Server <Version> > Exchange Toolbox.

    • Windows Server 2012 R2 或 windows 8.1:在 "开始" 屏幕上,通过单击左下角附近的向下箭头或从屏幕中间向上轻扫,打开 "应用" 视图。Windows Server 2012 R2 or Windows 8.1: On the Start screen, open the Apps view by clicking the down arrow near the lower-left corner or swiping up from the middle of the screen. Exchange 工具箱快捷方式位于名为**Microsoft Exchange Server <Version> **的组中。The Exchange Toolbox shortcut is in a group named Microsoft Exchange Server <Version>.

    • Windows Server 2012:使用以下任何一种方法:Windows Server 2012: Use any of the following methods:

      • 在开始屏幕中,单击空白区域,并键入 Exchange Toolbox。On the Start screen, click an empty area, and type Exchange Toolbox.

      • 在桌面或开始屏幕上,按 Windows 键 + Q。在“搜索”超级按钮中,键入 Exchange Toolbox。On the desktop or the Start screen, press Windows key + Q. In the Search charm, type Exchange Toolbox.

      • 在桌面或“开始”屏幕上,将光标移到右上角或从屏幕的右边缘向左轻扫,以显示超级按钮。On the desktop or the Start screen, move your cursor to the upper-right corner, or swipe left from the right edge of the screen to show the charms. 单击“搜索”超级按钮,然后键入 Exchange Toolbox。Click the Search charm, and type Exchange Toolbox.

      当快捷方式出现在结果中时,则可以选择它。When the shortcut appears in the results, you can select it.

  • 若要了解如何在本地 Exchange 组织中打开 Exchange 命令行管理程序,请参阅 Open the Exchange Management ShellTo learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Exchange Management Shell.

  • 有关在 Exchange 命令行管理程序中使用筛选器和标识值的详细信息,请参阅Exchange 命令行管理程序中的在队列中查找队列和邮件For more information about using filters and identity values in the Exchange Management Shell, see Find queues and messages in queues in the Exchange Management Shell.

  • You need to be assigned permissions before you can perform this procedure or procedures.You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Queues" entry in the Mail flow permissions topic.To see what permissions you need, see the "Queues" entry in the Mail flow permissions topic.

  • 若要了解本主题中的过程可能适用的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

Having problems?Having problems? Ask for help in the Exchange forums.Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

查看队列View queues

使用队列查看器查看队列Use Queue Viewer to view queues

  1. Exchange 工具箱中,在 "邮件流工具" 部分,双击 "队列查看器" 以在新窗口中打开该工具。In the Exchange Toolbox, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. In Queue Viewer, click the Queues tab. A list of all queues on the server to which you're connected is displayed.In Queue Viewer, click the Queues tab. A list of all queues on the server to which you're connected is displayed.

  3. You can use the Export List link in the action pane to export the list of queues.You can use the Export List link in the action pane to export the list of queues. For more information, see How to Export Lists from the Exchange Management Consoles.For more information, see How to Export Lists from the Exchange Management Consoles.

使用 Exchange 命令行管理程序查看队列Use the Exchange Management Shell to view queues

若要查看队列,请使用以下语法。To view queues, use the following syntax.

Get-Queue [-Filter <Filter> -Server <ServerIdentity> -Include <Internal | External | Empty | DeliveryType> -Exclude <Internal | External | Empty | DeliveryType>]

本示例显示有关名为 Mailbox01 的服务器上的所有非空队列的基本信息。This example displays basic information about all non-empty queues on the server named Mailbox01.

Get-Queue -Server Mailbox01 -Exclude Empty

本示例显示本地 Exchange 服务器上包含100封以上邮件的所有队列的详细信息。This example displays detailed information for all queues on the local Exchange server that contain more than 100 messages.

Get-Queue -Filter "MessageCount -gt 100" | Format-List

有关详细信息,请参阅 Exchange 命令行管理程序中的 "在队列中获取队列" 和"查找队列" 和 "邮件"For more information, see Get-Queue and Find queues and messages in queues in the Exchange Management Shell.

使用 Exchange 命令行管理程序查看多个 Exchange 服务器上的队列摘要信息Use the Exchange Management Shell to view queue summary information on multiple Exchange servers

Get-queuedigest cmdlet 提供了特定作用域内所有服务器上的队列状态的高级别聚合视图(例如,DAG、Active Directory 站点、服务器列表或整个 Active Directory 林)。The Get-QueueDigest cmdlet provides a high-level, aggregate view of the state of queues on all servers within a specific scope (for example, a DAG, an Active Directory site, a list of servers, or the entire Active Directory forest).

By default, the Get-QueueDigest cmdlet displays delivery queues that contain ten or more messages, and the results are between one and two minutes old.By default, the Get-QueueDigest cmdlet displays delivery queues that contain ten or more messages, and the results are between one and two minutes old. For instructions on how to change these default values, see Configure Get-QueueDigest.For instructions on how to change these default values, see Configure Get-QueueDigest.

注意:Notes:

  • 订阅的边缘传输服务器上的队列不包含在get-queuedigest的结果中。Queues on a subscribed Edge Transport server aren't included in the results of Get-QueueDigest.

  • Get-queuedigest在边缘传输服务器上可用,但会将结果限制为服务器上的本地队列。Get-QueueDigest is available on Edge Transport servers, but the results are restricted to local queues on the server.

若要查看多个 Exchange 服务器上的队列摘要信息,请运行以下命令:To view summary information about queues on multiple Exchange servers, run the following command:

Get-QueueDigest <-Server <ServerIdentity1,ServerIdentity2...> | -Dag <DagIdentity1,DagIdentity2...> | -Site <ADSiteIdentity1,ADSiteIdentity2...> | -Forest> [-Filter <Filter>]

本示例显示名为 FirstSite 的 Active Directory 站点中的所有 Exchange 2013 或更高版本邮箱服务器上的队列的摘要信息,其中邮件计数大于100。This example displays summary information about the queues on all Exchange 2013 or later Mailbox servers in the Active Directory site named FirstSite where the message count is greater than 100.

Get-QueueDigest -Site FirstSite -Filter "MessageCount -gt 100"

本示例显示名为 DAG01 的数据库可用性组(DAG)中的所有邮箱服务器上的队列的摘要信息,其中队列状态的值为 "重试"。This example displays summary information about the queues on all Mailbox servers in the database availability group (DAG) named DAG01 where the queue status has the value Retry.

Get-QueueDigest -Dag DAG01 -Filter "Status -eq 'Retry'"

有关详细信息,请参阅get-queuedigestFor more information, see Get-QueueDigest.

重试队列Retry queues

重试传递队列时,将强制立即连接尝试,并覆盖下一个计划的重试时间。When you retry a delivery queue, you force an immediate connection attempt and override the next scheduled retry time. 有关队列的计划重试时间的详细信息,请参阅邮件重试间隔、重新提交间隔和过期间隔For more information about the schedule retry time for queues, see Message retry, resubmit, and expiration intervals.

注意:Notes:

  • 队列必须处于 "重试" 状态才能使此操作生效。The queue must be in a status of Retry for this action to have any effect.

  • 如果连接未成功,则重置重试间隔计时器。If the connection isn't successful, the retry interval timer is reset.

使用队列查看器重试队列Use Queue Viewer to retry a queue

  1. Exchange 工具箱中,在 "邮件流工具" 部分,双击 "队列查看器" 以在新窗口中打开该工具。In the Exchange Toolbox, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. 在队列查看器中,单击 "队列" 选项卡。将显示您要连接到的服务器上所有队列的列表。In Queue Viewer, click the Queues tab. A list of all queues on the server that you're connected to is displayed.

  3. Click Create Filter, and enter your filter expression as follows:Click Create Filter, and enter your filter expression as follows:

    1. Select Status from the queue property drop-down list.Select Status from the queue property drop-down list.

    2. Select Equals from the comparison operator drop-down list.Select Equals from the comparison operator drop-down list.

    3. Select Retry from the value drop-down list.Select Retry from the value drop-down list.

    4. Click Apply Filter.Click Apply Filter. All queues that currently have a Retry status are displayed.All queues that currently have a Retry status are displayed.

    5. Select one or more queues from the list.Select one or more queues from the list. Right-click, and then select Retry Queue.Right-click, and then select Retry Queue. If the connection attempt is successful, the queue status changes to Active.If the connection attempt is successful, the queue status changes to Active. If no connection can be made, the queue remains in a status of Retry and the next retry time is updated.If no connection can be made, the queue remains in a status of Retry and the next retry time is updated.

使用 Exchange 命令行管理程序重试队列Use the Exchange Management Shell to retry a queue

若要重试队列,请使用以下语法。To retry queues, use the following syntax.

Retry-Queue <-Identity QueueIdentity | -Filter QueueFilter [-Server ServerIdentity]>

此示例重试本地服务器上状态为"重试"的所有队列。This example retries all queues on the local server with the status of Retry.

Retry-Queue -Filter "Status -eq 'Retry'"

此示例将重试名为 Mailbox01 的服务器上名为 contoso.com 的队列。This example retries the queue named contoso.com on the server named Mailbox01.

Retry-Queue -Identity Mailbox01\contoso.com

如何判断是否生效?How do you know this worked?

若要验证是否已成功重试队列,请使用以下过程之一:To verify that you have successfully retried a queue, use either of the following procedures:

  • 在队列查看器中,验证状态的值、下一次重试时间最后一个错误属性。In Queue Viewer, verify the values of the Status, Next Retry Time, and Last Error properties.

  • 在 Exchange 命令行管理程序中, <QueueIdentity> 将替换为队列的标识,并使用以下语法来验证属性值:In the Exchange Management Shell, replace <QueueIdentity> with the identity of the queue, and use the following syntax to verify the property values:

    Get-Queue -Identity <QueueIdentity> | Format-Table -Auto Identity,Status,LastRetryTime,NextRetryTime
    

重新提交队列Resubmit queues

重新提交队列会将队列中的所有邮件发送回提交队列,以便分类程序进行处理。Resubmitting a queue sends all messages in the queue back to the Submission queue for the categorizer to process. 有关分类程序的详细信息,请参阅邮件流和传输管道For more information about the categorizer, see Mail flow and the transport pipeline.

注意:Notes:

  • 不能使用队列查看器重新提交队列。You can't use Queue Viewer to resubmit queues. 只能使用 Exchange 命令行管理程序。You can only use the Exchange Management Shell.

  • 您可以重新提交以下队列:You can resubmit the following queues:

    • 状态为 "重试" 的传递队列。A delivery queue that has the status of Retry.

    • "无法到达"队列。The Unreachable queue.

      队列中状态值为 "已挂起" 的任何邮件都不会重新提交。Any messages in the queue that have the status value of Suspended aren't resubmitted.

  • 无法重新提交病毒邮件队列,但可以重新提交队列中的单个邮件。You can't resubmit the poison message queue, but you can resubmit individual messages in the queue. 有关详细信息,请参阅本主题后面的 "重新提交病毒邮件队列中的邮件" 部分。For more information, see the Resubmit messages in the poison message queue section later in this topic.

  • 您可以将邮件导出到 .eml 文件,并使用任意 Exchange 服务器上的重播目录重新提交邮件,而无需重新提交队列。Instead of resubmitting the queue, you can export the messages to .eml files and resubmit them by using the Replay directory on any Exchange server. 有关详细信息,请参阅从队列中导出邮件For more information, see Export messages from queues

使用 Exchange 命令行管理程序重新提交队列Use the Exchange Management Shell to resubmit queues

若要重新提交队列,请使用以下语法:To resubmit queues, use the following syntax:

Retry-Queue <-Identity QueueIdentity | -Filter "Status -eq 'Retry'" -Server ServerIdentity> -Resubmit $true

此示例将重新提交位于 Mailbox01 服务器上任何传递队列中状态为"重试"的所有邮件。This example resubmits all messages located in any delivery queues with the status of Retry on the server named Mailbox01.

Retry-Queue -Filter "Status -eq 'Retry'" -Server Mailbox01 -Resubmit $true

此示例将重新提交位于 Mailbox01 服务器上无法到达队列中的所有邮件。This example resubmits all messages located in the Unreachable queue on the server Mailbox01.

Retry-Queue -Identity Mailbox01\Unreachable -Resubmit $true

有关详细信息,请参阅重试队列For more information, see Retry-Queue.

如何判断是否生效?How do you know this worked?

若要验证是否已成功重新提交队列,请使用以下过程之一:To verify that you have successfully resubmitted a queue, use either of the following procedures:

  • 在队列查看器中,验证队列的属性。In Queue Viewer, verify the properties of the queue.

  • 在 Exchange 命令行管理程序中,将替换 <QueueIdentity> 为队列的标识,然后运行以下命令来验证属性值:In the Exchange Management Shell, replace <QueueIdentity> with the identity of the queue, and run the following command to verify the property values:

    Get-Queue -Identity <QueueIdentity>
    

重新提交位于病毒邮件队列中的邮件Resubmit messages in the poison message queue

重新提交邮件的一个特殊情况是病毒邮件队列。A special case for resubmitting messages is the poison message queue. 您无法像其他队列一样重新提交病毒邮件队列,但您可以重新提交病毒邮件队列中的单个邮件。You can't resubmit the poison message queue like other queues, but you can resubmit individual messages in the poison message queue.

注意:Notes:

  • 病毒邮件队列中的邮件可能是这些有害的,也可能是有效的传输代理或软件错误的受害者邮件。Messages in the poison message queue might be genuinely harmful, or they might be valid messages that are the victims of an poorly written transport agent or a software bug. 如果您不确定病毒邮件队列中邮件的安全,则应将邮件导出到文件中,以便您可以对其进行检查。If you're unsure of the safety of the messages in the poison message queue, you should export the messages to files so you can examine them. 有关详细信息,请参阅从队列导出邮件For more information, see Export messages from queues.

  • 重新提交病毒邮件队列中的邮件的过程与恢复来自其他队列的挂起邮件相同。The procedure to resubmit messages from the poison message queue is the same as resuming suspended messages from other queues. 您可以使用队列查看器或 Exchange 命令行管理程序。You can use Queue Viewer or the Exchange Management Shell. 有关恢复邮件的详细信息,请参阅Resume messages in 队列For more information about resuming messages, see Resume messages in queues.

  • 只有当队列包含邮件时,病毒邮件队列才可见。The poison message queue is only visible when the queue contains messages.

使用队列查看器重新提交病毒邮件队列中的邮件Use Queue Viewer to resubmit messages in the poison message queue

  1. Exchange 工具箱中,在 "邮件流工具" 部分,双击 "队列查看器" 以在新窗口中打开该工具。In the Exchange Toolbox, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. 在队列查看器中,单击 "队列" 选项卡。将显示您要连接到的服务器上所有队列的列表。In Queue Viewer, click the Queues tab. A list of all queues on the server that you're connected to is displayed.

  3. 选择 "病毒邮件队列"。Select the poison message queue. In the action pane, select View Messages.In the action pane, select View Messages.

  4. Select one or more messages from the list, right-click, and select Resume.Select one or more messages from the list, right-click, and select Resume.

使用 Exchange 命令行管理程序重新提交病毒邮件队列中的邮件Use the Exchange Management Shell to resubmit messages in the poison message queue

若要重新提交病毒邮件队列中的邮件,请执行以下步骤。To resubmit a message from the poison message queue, perform the following steps.

  1. 通过在本地服务器上运行以下命令来查找邮件的标识。Find the identity of the message by running the following command on the local server.

    Get-Message -Queue Poison | Format-Table Identity
    
  2. 在以下命令中使用在上一步中获得的邮件标识。Use the identity of the message from the previous step in the following command.

    Resume-Message <PoisonMessageIdentity>
    

    此示例将恢复病毒邮件队列中邮件标识值为 222 的邮件。This example resumes a message from the poison message queue that has the message Identity value of 222.

    Resume-Message 222
    

有关详细信息,请参阅Resume MessageFor more information, see Resume-Message.

如何判断是否生效?How do you know this worked?

若要验证是否已成功重新提交病毒邮件队列中的邮件,请使用以下过程之一来验证该邮件是否不再在队列中:To verify that you have successfully resubmitted a message from the poison message queue, use either of the following procedures to verify that the message is no longer in the queue:

  • 在队列查看器中,查看尝试重新提交邮件的病毒邮件队列。In Queue Viewer, view the poison message queue where you attempted to resubmit the message.

  • 在 Exchange 命令行管理程序中,运行以下命令:In the Exchange Management Shell, run the following command:

    Get-Message -Queue Poison
    

如果您重新提交的邮件是病毒邮件队列中的唯一邮件,并且该队列不再可见,这也表明邮件重新提交成功。If the message you resubmitted was the only message in the poison message queue, and the queue is no longer visible, that's also an indication of a successful message resubmission.

挂起队列Suspend queues

可以通过挂起队列来停止邮件流,然后挂起队列中的一封或多封邮件。You can suspend a queue to stop mail flow, and then suspend one or more messages in the queue. 有关详细信息,请参阅挂起队列中的邮件For more information, see Suspend messages in queues.

注意:Notes:

  • 可以暂停以下队列:You can suspend the following queues:

    • 具有任何状态的传递队列。A delivery queue that has any status.

    • "无法到达"队列。The Unreachable queue. 在手动恢复此队列之前,如果检测到配置更新,则不会再自动将邮件重新提交到分类程序。Until you manually resume this queue, messages are no longer automatically resubmitted to the categorizer when configuration updates are detected.

    • 提交队列。The Submission queue. 在手动恢复此队列之前,分类程序不会选取邮件。Until you manually resume this queue, messages aren't picked up by the categorizer.

  • 挂起队列不会将队列中邮件的状态更改为 "已挂起"。Suspending a queue doesn't change the status of the messages in the queue to Suspended.

使用队列查看器挂起队列Use Queue Viewer to suspend a queue

  1. Exchange 工具箱中,在 "邮件流工具" 部分,双击 "队列查看器" 以在新窗口中打开该工具。In the Exchange Toolbox, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. 在队列查看器中,单击 "队列" 选项卡。将显示您要连接到的服务器上所有队列的列表。In Queue Viewer, click the Queues tab. A list of all queues on the server that you're connected to is displayed. 可以创建筛选器,以便仅显示符合特定条件的队列。You can create a filter to display only queues that meet specific criteria.

  3. Select one or more queues, right-click, and then select Suspend.Select one or more queues, right-click, and then select Suspend.

使用 Exchange 命令行管理程序挂起队列Use the Exchange Management Shell to suspend a queue

若要挂起队列,请使用以下语法:To suspend a queue, use the following syntax:

Suspend-Queue <-Identity QueueIdentity | -Filter "QueueFilter" [-Server ServerIdentity]>

此示例将挂起本地服务器上邮件计数等于或大于 1,000 且状态为"重试"的所有队列。This example suspends all queues on the local server that have a message count equal to or greater than 1,000 and that have a status of Retry.

Suspend-Queue -Filter "MessageCount -ge 1000 -and Status -eq 'Retry'"

本示例挂起位于 Mailbox01 服务器上的名为 contoso.com 的队列。This example suspends the queue named contoso.com on the server named Mailbox01.

Suspend-Queue -Identity Mailbox01\contoso.com

有关详细信息,请参阅挂起队列For more information, see Suspend-Queue.

如何判断是否生效?How do you know this worked?

若要验证是否已成功挂起队列,请使用以下过程之一:To verify that you have successfully suspended a queue, use either of the following procedures:

  • 在队列查看器中,验证队列的状态值是否为 "重试"。In Queue Viewer, verify the queue has the Status value of Retry.

  • 在 Exchange 命令行管理程序中,将替换 <QueueIdentity> 为队列的标识,然后运行以下命令来验证Status属性值:In the Exchange Management Shell, replace <QueueIdentity> with the identity of the queue, and run the following command to verify the Status property value:

    Get-Queue -Identity <QueueIdentity>
    

恢复队列Resume queues

通过恢复队列,可以从状态为 "已挂起" 的队列重新启动传出邮件传递。By resuming a queue, you restart outgoing message delivery from a queue that has a status of Suspended.

注意:Notes:

  • 只能恢复已挂起的队列。You can only resume queues that have been suspended.

  • 恢复队列并不会更改队列中邮件的状态。Resuming a queue doesn't change the status of messages in the queue. 例如,状态为 "已挂起" 的邮件将保持挂起,并且在恢复队列后不会离开队列。For example, messages that have a status of Suspended remain suspended and don't leave the queue after you resume the queue.

使用队列查看器恢复队列Use Queue Viewer to resume queues

  1. Exchange 工具箱中,在 "邮件流工具" 部分,双击 "队列查看器" 以在新窗口中打开该工具。In the Exchange Toolbox, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. 在队列查看器中,单击 "队列" 选项卡。将显示您要连接到的服务器上所有队列的列表。In Queue Viewer, click the Queues tab. A list of all queues on the server that you're connected to is displayed.

  3. Click Create Filter, and enter your filter expression as follows:Click Create Filter, and enter your filter expression as follows:

    1. Select Status from the queue property drop-down list.Select Status from the queue property drop-down list.

    2. Select Equals from the comparison operator drop-down list.Select Equals from the comparison operator drop-down list.

    3. Select Suspended from the value drop-down list.Select Suspended from the value drop-down list.

  4. Click Apply Filter.Click Apply Filter. All queues on the server that are currently suspended are displayed.All queues on the server that are currently suspended are displayed.

  5. Select one or more queues from the list, right-click, and then select Resume.Select one or more queues from the list, right-click, and then select Resume.

使用 Exchange 命令行管理程序恢复队列Use the Exchange Management Shell to resume queues

若要恢复队列,请使用以下语法:To resume queues, use the following syntax:

Resume-Queue <-Identity QueueIdentity | -Filter "QueueFilter" [-Server ServerIdentity]>

本示例恢复本地服务器上状态为"已挂起"的所有队列。This example resumes all queues on the local server that have a status of Suspended.

Resume-Queue -Filter "Status -eq 'Suspended'"

本示例恢复位于 Mailbox01 服务器上的名为 contoso.com 的"已挂起"传递队列。This example resumes the suspended delivery queue named contoso.com on the server named Mailbox01.

Resume-Queue -Identity Mailbox01\contoso.com

有关详细信息,请参阅Resume QueueFor more information, see Resume-Queue.

如何判断是否生效?How do you know this worked?

若要验证是否已成功恢复队列,请使用以下过程之一:To verify that you have successfully resumed a queue, use either of the following procedures:

  • 在队列查看器中,验证队列的状态值是否为 "已挂起" (例如,"活动"、"正在连接" 或 "就绪")。In Queue Viewer, verify the queue doesn't have the Status value Suspended (for example, Active, Connecting, or Ready).

  • 在 Exchange 命令行管理程序中,将替换 <QueueIdentity> 为队列的标识,然后运行以下命令来验证Status属性值:In the Exchange Management Shell, replace <QueueIdentity> with the identity of the queue, and run the following command to verify the Status property value:

    Get-Queue -Identity <QueueIdentity>