当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 暂停 Exchange Server 中的邮箱移动请求

作者:精品下载站 日期:2024-12-14 18:09:21 浏览:16 分类:玩电脑

暂停 Exchange Server 中的邮箱移动请求


今天是美好的一天,因为您需要将邮箱移动到新数据库。您希望暂停邮箱移动请求,因为这需要很长时间。邮箱简历将在员工下班当天晚些时候发送。在本文中,您将了解如何使用 PowerShell 暂停单个邮箱或所有邮箱。

暂停单个邮箱

要暂停单个邮箱移动请求,请按照以下步骤操作:

第 1 步:获取移动请求

您是否已经知道要暂停哪个邮箱?这很好,然后继续下一步。如果没有,让我们获取移动请求统计信息。

以管理员身份运行 Exchange 命令行管理程序。接下来,运行 Get-MoveRequest cmdlet。

[PS] C:\>Get-MoveRequest "[email protected]"| Get-MoveRequestStatistics
 
DisplayName    StatusDetail    TotalMailboxSize               TotalArchiveSize PercentComplete
-----------    ------------    ----------------               ---------------- ---------------
Doe John       CopyingMessages 2.423 MB (2,540,313 bytes)                      39

步骤 2:暂停单个邮箱移动请求

我们想暂停Doe John的邮箱。让我们运行 Suspend-MoveRequest cmdlet 以及 -Identity 参数后面的邮箱电子邮件地址或用户显示名称。

[PS] C:\>Suspend-MoveRequest -Identity "[email protected]"

[PS] C:\>Suspend-MoveRequest -Identity "Doe John"

第 3 步:检查移动请求

检查移动请求统计信息。它将显示邮箱状态详细信息为已暂停

[PS] C:\>Get-MoveRequest -Identity "[email protected]" | Get-MoveRequestStatistics
 
DisplayName    StatusDetail    TotalMailboxSize               TotalArchiveSize PercentComplete
-----------    ------------    ----------------               ---------------- ---------------
Doe John       Suspended       2.423 MB (2,540,313 bytes)                      41

步骤 4:恢复单个邮箱移动请求

让我们恢复邮箱移动请求。我们将运行 Resume-MoveRequest cmdlet。运行这两个命令之一。

[PS] C:\>Resume-MoveRequest -Identity "[email protected]"

[PS] C:\>Resume-MoveRequest -Identity "Doe John"

暂停所有邮箱

要暂停所有邮箱移动请求,请按照下列步骤操作:

第 1 步:获取所有移动请求

您是否已经知道要暂停哪个邮箱?这很好,然后继续下一步。如果没有,让我们获取移动请求统计信息。

以管理员身份运行 Exchange 命令行管理程序。接下来,运行 Get-MoveRequest cmdlet。

[PS] C:\>Get-MoveRequest | Get-MoveRequestStatistics
 
DisplayName    StatusDetail    TotalMailboxSize               TotalArchiveSize PercentComplete
-----------    ------------    ----------------               ---------------- ---------------
Flowers Alima  CopyingMessages 5.063 KB (5,184 bytes)                          29
Wells Jamal    CopyingMessages 2.423 MB (2,540,313 bytes)                      25
Harwood Haidar CopyingMessages 302.3 KB (309,603 bytes)                        52
Wu Samantha    CopyingMessages 4.377 MB (4,589,389 bytes)                      30
Lester Shana   CopyingMessages 231.6 MB (242,877,775 bytes)                    89
Fowler Simone  CopyingMessages 3.148 GB (3,379,905,224 bytes)                  47

步骤 2:暂停所有邮箱移动请求

运行命令以暂停邮箱。之后,检查移动请求是否处于挂起状态。

注意:我们将使用-Confirm:$false开关。您不会收到询问是否确定暂停移动请求的确认消息。

[PS] C:\>Get-MoveRequest -MoveStatus InProgress | Suspend-MoveRequest -Confirm:$false

第 3 步:检查所有移动请求

所有邮箱移动请求现已暂停

[PS] C:\>Get-MoveRequest | Get-MoveRequestStatistics
 
DisplayName    StatusDetail TotalMailboxSize               TotalArchiveSize PercentComplete
-----------    ------------ ----------------               ---------------- ---------------
Flowers Alima  Suspended    5.063 KB (5,184 bytes)                          30
Wells Jamal    Suspended    2.423 MB (2,540,313 bytes)                      27
Harwood Haidar Suspended    302.3 KB (309,603 bytes)                        54
Wu Samantha    Suspended    4.377 MB (4,589,389 bytes)                      31
Lester Shana   Suspended    231.6 MB (242,877,775 bytes)                    89
Fowler Simone  Suspended    3.148 GB (3,379,905,224 bytes)                  47

步骤 4:恢复所有邮箱移动请求

现在我们要恢复邮箱移动请求。运行命令并检查移动请求是否处于恢复状态。

[PS] C:\>Get-MoveRequest -MoveStatus Suspended | Resume-MoveRequest

[PS] C:\>Get-MoveRequest | Get-MoveRequestStatistics
 
DisplayName    StatusDetail    TotalMailboxSize               TotalArchiveSize PercentComplete
-----------    ------------    ----------------               ---------------- ---------------
Flowers Alima  CopyingMessages 5.063 KB (5,184 bytes)                          34
Wells Jamal    CopyingMessages 2.423 MB (2,540,313 bytes)                      39
Harwood Haidar CopyingMessages 302.3 KB (309,603 bytes)                        61
Wu Samantha    CopyingMessages 4.377 MB (4,589,389 bytes)                      32
Lester Shana   CopyingMessages 231.6 MB (242,877,775 bytes)                    91
Fowler Simone  CopyingMessages 3.148 GB (3,379,905,224 bytes)                  5

就是这样!

了解更多:通过文本文件迁移 Exchange 邮箱 »

结论

您了解了如何在 Exchange Server 中暂停和恢复邮箱移动请求。当出现网络问题时,必须暂停邮箱移动。修复网络问题后,恢复移动请求。使用 PowerShell,可以轻松读取邮箱移动请求数据,并通过几个命令快速执行操作。

您喜欢这篇文章吗?您可能还喜欢将所有邮箱从一个数据库移动到另一个数据库。不要忘记关注我们并分享这篇文章。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯