[玩转系统] 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,则会发生这种情况。
这就是为什么在将邮箱移动到另一个数据库后必须清除请求的原因。如果您等待并且对用户进行了更改,则清除移动请求将失败并出现警告。
在接下来的三个步骤中,我们将删除失败的移动请求:
获取移动请求
显示移动请求
-
删除移动请求
获取删除失败的移动请求
首先,运行 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 中暂停邮箱移动请求。不要忘记关注我们并分享这篇文章。
猜你还喜欢
- 03-30 [玩转系统] 如何用批处理实现关机,注销,重启和锁定计算机
- 02-14 [系统故障] Win10下报错:该文件没有与之关联的应用来执行该操作
- 01-07 [系统问题] Win10--解决锁屏后会断网的问题
- 01-02 [系统技巧] Windows系统如何关闭防火墙保姆式教程,超详细
- 12-15 [玩转系统] 如何在 Windows 10 和 11 上允许多个 RDP 会话
- 12-15 [玩转系统] 查找 Exchange/Microsoft 365 中不活动(未使用)的通讯组列表
- 12-15 [玩转系统] 如何在 Windows 上安装远程服务器管理工具 (RSAT)
- 12-15 [玩转系统] 如何在 Windows 上重置组策略设置
- 12-15 [玩转系统] 如何获取计算机上的本地管理员列表?
- 12-15 [玩转系统] 在 Visual Studio Code 中连接到 MS SQL Server 数据库
- 12-15 [玩转系统] 如何降级 Windows Server 版本或许可证
- 12-15 [玩转系统] 如何允许非管理员用户在 Windows 中启动/停止服务
取消回复欢迎 你 发表评论:
- 精品推荐!
-
- 最新文章
- 热门文章
- 热评文章
[影视] 黑道中人 Alto Knights(2025)剧情 犯罪 历史 电影
[古装剧] [七侠五义][全75集][WEB-MP4/76G][国语无字][1080P][焦恩俊经典]
[实用软件] 虚拟手机号 电话 验证码 注册
[电视剧] 安眠书店/你 第五季 You Season 5 (2025) 【全10集】
[电视剧] 棋士(2025) 4K 1080P【全22集】悬疑 犯罪 王宝强 陈明昊
[软件合集] 25年6月5日 精选软件22个
[软件合集] 25年6月4日 精选软件36个
[短剧] 2025年06月04日 精选+付费短剧推荐33部
[短剧] 2025年06月03日 精选+付费短剧推荐25部
[软件合集] 25年6月3日 精选软件44个
[剧集] [央视][笑傲江湖][2001][DVD-RMVB][高清][40集全]李亚鹏、许晴、苗乙乙
[电视剧] 欢乐颂.5部全 (2016-2024)
[电视剧] [突围] [45集全] [WEB-MP4/每集1.5GB] [国语/内嵌中文字幕] [4K-2160P] [无水印]
[影视] 【稀有资源】香港老片 艺坛照妖镜之96应召名册 (1996)
[剧集] 神经风云(2023)(完结).4K
[剧集] [BT] [TVB] [黑夜彩虹(2003)] [全21集] [粤语中字] [TV-RMVB]
[实用软件] 虚拟手机号 电话 验证码 注册
[资源] B站充电视频合集,包含多位重量级up主,全是大佬真金白银买来的~【99GB】
[影视] 内地绝版高清录像带 [mpg]
[书籍] 古今奇书禁书三教九流资料大合集 猎奇必备珍藏资源PDF版 1.14G
[电视剧] [突围] [45集全] [WEB-MP4/每集1.5GB] [国语/内嵌中文字幕] [4K-2160P] [无水印]
[剧集] [央视][笑傲江湖][2001][DVD-RMVB][高清][40集全]李亚鹏、许晴、苗乙乙
[电影] 美国队长4 4K原盘REMUX 杜比视界 内封简繁英双语字幕 49G
[电影] 死神来了(1-6)大合集!
[软件合集] 25年05月13日 精选软件16个
[精品软件] 25年05月15日 精选软件18个
[绝版资源] 南与北 第1-2季 合集 North and South (1985) /美国/豆瓣: 8.8[1080P][中文字幕]
[软件] 25年05月14日 精选软件57个
[短剧] 2025年05月14日 精选+付费短剧推荐39部
[短剧] 2025年05月15日 精选+付费短剧推荐36部
- 最新评论
-
- 热门tag