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

[玩转系统] Exchange Server 中删除移动请求失败

作者:精品下载站 日期:2024-12-14 22:31:22 浏览:11 分类:玩电脑

Exchange Server 中删除移动请求失败


迁移到另一个邮箱数据库已于几周前完成。我们想删除移动请求。运行 cmdlet 来删除移动请求时,失败。我们无法清除 Exchange Server 中的移动请求。在本文中,您将了解为什么会发生这种情况,以及在 Exchange Server 中删除移动请求失败的解决方案。

删除移动请求统计信息

我们确实将邮箱移动到另一个邮箱数据库。现在我们想删除移动请求以保持干净。以管理员身份运行 Exchange 命令行管理程序。运行 cmdlet 以删除移动请求。

[PS] C:\>Get-MoveRequest -ResultSize Unlimited | Remove-MoveRequest -Confirm:$false

在下一步中,我们将验证是否确实删除了移动请求。

了解更多:删除已完成的移动请求 Exchange »

获取移动请求统计信息

运行 Get-MoveRequestStatics cmdlet。在我们的示例中,我们希望获取邮箱数据库 DB02 的移动统计信息。输出应该为空,因为我们确实在上一步中删除了移动请求。

[PS] C:\>Get-MoveRequestStatistics -MoveRequestQueue "DB02"

运行上述 cmdlet 后,输出不为空。它向我们显示以下警告:

  • 警告:用户的移动请求无效:Active Directory 用户未被移动。

  • 警告:用户的移动请求无效:无法在 Active Directory 中找到用户。

WARNING: The move request for user 'exoip.local/Company/Exchange/Resources/Room Tokyo' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Max Fraser' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Mohammad Rashid' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{2CE34405-31BE-455D-89D7-A7C7DA7A0DAA}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{D0E409A0-AF9B-4720-92FE-AAC869B0D201}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Boris Campbell' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{1f05a927-818f-4eba-8556-a1e4b042da46}' is invalid: The Active Directory user isn't being moved..
DisplayName                           StatusDetail TotalMailboxSize               TotalArchiveSize PercentComplete
-----------                           ------------ ----------------               ---------------- ---------------
Room Tokyo                            Completed    397.9 KB (407,415 bytes)                        100
Max Fraser                            Completed    53.44 KB (54,722 bytes)                         100
Mohammad Rashid                       Completed    54.45 KB (55,755 bytes)                         100
Microsoft Exchange                    Completed    56.49 KB (57,846 bytes)                         100
E4E Encryption Store - Active         Completed    55.09 KB (56,413 bytes)                         100
Boris Campbell                        Completed    3.774 GB (4,051,795,831 bytes)                  100
Microsoft Exchange Approval Assistant Completed    58.83 KB (60,238 bytes)                         100
Microsoft Exchange                    Completed    94.74 KB (97,018 bytes)                         100
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}' is invalid: The Active Directory user isn't being moved..
Discovery Search Mailbox              Completed    435.6 KB (446,077 bytes)                        100
WARNING: The move request for user 'exoip.local/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}' is invalid: The Active Directory user isn't being moved..
Jonathan  Fisher                      Completed    2.838 GB (3,047,518,309 bytes)                  100
WARNING: The move request for user 'exoip.local/Company/Users/IT/Jonathan Fisher' is invalid: The Active Directory user isn't being moved..
Zoë Rees                              Completed    3.427 GB (3,679,310,422 bytes)                  100
WARNING: The move request for user 'exoip.local/Company/Users/IT/Zoë Rees' is invalid: The Active Directory user isn't being moved..
Microsoft Exchange Approval Assistant Completed    309.2 KB (316,653 bytes)                        100
WARNING: The move request for user 'exoip.local/Users/Migration.8f3e7716-2011-43e4-96b1-aba62d229136' is invalid: The Active Directory user isn't being moved..
Microsoft Exchange                    Completed    833.9 KB (853,939 bytes)                        100
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}' is invalid: The Active Directory user isn't being moved..
Microsoft Exchange Federation Mailbox Completed    50.39 KB (51,595 bytes)                         100
WARNING: The move request for user 'exoip.local/Users/FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042' is invalid: The Active Directory user isn't being moved..

为什么我们会收到此警告?无法清除 Exchange Server 中的移动请求的解决方案是什么?

继续阅读:检查移动请求状态 Exchange »

无法清除移动请求的解决方案

解决方案是使用 -MailboxGuid 参数取消移动请求。但为什么会出现这种情况呢?如果在清除移动请求之前重新创建、删除用户或将用户移动到 AD 中的另一个 OU,则会发生这种情况。

这就是为什么在将邮箱移动到另一个数据库后必须清除请求的原因。如果您等待并且对用户进行了更改,则清除移动请求将失败并出现警告。

在接下来的三个步骤中,我们将删除失败的移动请求:

  1. 获取移动请求

  2. 显示移动请求

  3. 删除移动请求

获取删除失败的移动请求

首先,运行 cmdlet 以获取失败的移动请求。

[PS] C:\>$DBs = Get-MailboxDatabase; $MoveReqs = $DBs | % {Get-MoveRequestStatistics -MoveRequestQueue $_.Name -EA SilentlyContinue} | Select MailboxIdentity,ExchangeGuid,RequestQueue,StatusDetail
WARNING: The move request for user 'exoip.local/Company/Exchange/Resources/Room Tokyo' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Max Fraser' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Mohammad Rashid' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{2CE34405-31BE-455D-89D7-A7C7DA7A0DAA}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{D0E409A0-AF9B-4720-92FE-AAC869B0D201}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Boris Campbell' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{1f05a927-818f-4eba-8556-a1e4b042da46}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Jonathan Fisher' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Company/Users/IT/Zoë Rees' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/Migration.8f3e7716-2011-43e4-96b1-aba62d229136' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}' is invalid: The Active Directory user isn't being moved..
WARNING: The move request for user 'exoip.local/Users/FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042' is invalid: The Active Directory user isn't being moved..

在表中显示移动请求

在表格中列出移动请求以获得更好的视图。

[PS] C:\>$MoveReqs | Format-Table *

MailboxIdentity                                                                 ExchangeGuid                         RequestQueue StatusDetail
---------------                                                                 ------------                         ------------ ------------
exoip.local/Company/Exchange/Resources/Room Tokyo                               3a47bd24-13f8-435d-996b-8ed61f4e4c24 DB02            Completed
exoip.local/Company/Users/IT/Max Fraser                                         e6b97139-39e6-4775-ad95-46e2778e091c DB02            Completed
exoip.local/Company/Users/IT/Mohammad Rashid                                    9591833b-ef3a-405a-a4bc-9033fd991242 DB02            Completed
exoip.local/Users/SystemMailbox{2CE34405-31BE-455D-89D7-A7C7DA7A0DAA}           56e11645-578d-4edc-985a-44f270a818de DB02            Completed
exoip.local/Users/SystemMailbox{D0E409A0-AF9B-4720-92FE-AAC869B0D201}           3c051b46-782c-43ec-b284-f7444c7a6d12 DB02            Completed
exoip.local/Company/Users/IT/Boris Campbell                                     21925161-942e-4009-bc4e-b2ac298989f8 DB02            Completed
exoip.local/Users/SystemMailbox{1f05a927-818f-4eba-8556-a1e4b042da46}           5ed9817b-61d2-47e9-8338-071c5ee3de85 DB02            Completed
exoip.local/Users/SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}           493e8d7f-0bc1-49c1-b320-06812c95ddc8 DB02            Completed
exoip.local/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852} 376c38a4-4282-48a2-8ecc-0a4c651efb41 DB02            Completed
exoip.local/Company/Users/IT/Jonathan Fisher                                    82faf7cb-b4b8-463b-afd7-bd3570af5edb DB02            Completed
exoip.local/Company/Users/IT/Zoë Rees                                           23c905d8-a0a0-4cd8-8d95-9dc11a6af1c4 DB02            Completed
exoip.local/Users/Migration.8f3e7716-2011-43e4-96b1-aba62d229136                05db6fdc-2e35-45bf-8bd1-7500e901e9ef DB02            Completed
exoip.local/Users/SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}           215f0bef-ab87-4699-9f17-60aeccccf6f5 DB02            Completed
exoip.local/Users/FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042           cc05bbf2-0212-480d-b111-3dd07755b2fe DB02            Completed

删除移动请求

使用Remove-MoveRequest cmdlet 并使用-MailboxGuid 参数取消邮箱移动。首先,使用 -WhatIf 参数运行 cmdlet。环境中不会发生任何事情,它会在输出中告诉我们会发生什么。

注意:MailboxGuid 和 MoveRequestQueue 参数仅用于调试目的。

[PS] C:\>$MoveReqs | % {Remove-MoveRequest -MailboxGuid $_.ExchangeGuid -MoveRequestQueue $_.RequestQueue -EA SilentlyContinue -Confirm:$false -WhatIf}
What if: Removing move request "3a47bd24-13f8-435d-996b-8ed61f4e4c24".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "e6b97139-39e6-4775-ad95-46e2778e091c".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "9591833b-ef3a-405a-a4bc-9033fd991242".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "56e11645-578d-4edc-985a-44f270a818de".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "3c051b46-782c-43ec-b284-f7444c7a6d12".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "21925161-942e-4009-bc4e-b2ac298989f8".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "5ed9817b-61d2-47e9-8338-071c5ee3de85".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "493e8d7f-0bc1-49c1-b320-06812c95ddc8".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "376c38a4-4282-48a2-8ecc-0a4c651efb41".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "82faf7cb-b4b8-463b-afd7-bd3570af5edb".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "23c905d8-a0a0-4cd8-8d95-9dc11a6af1c4".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "05db6fdc-2e35-45bf-8bd1-7500e901e9ef".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "215f0bef-ab87-4699-9f17-60aeccccf6f5".  Caution: This will forcibly remove this move request. Use this only as a last resort.
What if: Removing move request "cc05bbf2-0212-480d-b111-3dd07755b2fe".  Caution: This will forcibly remove this move request. Use this only as a last resort.

删除 -WhatIf 并运行 cmdlet 以永久删除移动请求。

[PS] C:\>$MoveReqs | % {Remove-MoveRequest -MailboxGuid $_.ExchangeGuid -MoveRequestQueue $_.RequestQueue -EA SilentlyContinue -Confirm:$false}

验证移动请求已清除

运行 cmdlet,它将不会显示任何输出。

[PS] C:\>Get-MoveRequestStatistics -MoveRequestQueue "DB02"

就是这样。我们确实成功删除了 Exchange Server 中的移动请求。

继续阅读:将所有邮箱从一个数据库移至另一个数据库 »

结论

在本文中,您了解了为什么删除移动请求在 Exchange Server 中失败。解决方案是列出移动请求邮箱并使用 MailboxGuid 参数取消移动请求。下次移动邮箱时,请在完成后清除移动请求,不要等待太久。

您喜欢这篇文章吗?您可能还喜欢在 Exchange Server 中暂停邮箱移动请求。不要忘记关注我们并分享这篇文章。

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

取消回复欢迎 发表评论:

关灯