Quantcast
Channel: Fórum Exchange Server
Viewing all articles
Browse latest Browse all 11117

【排错】无法删除Exchange邮箱数据库

$
0
0

问题描述:

当用户删除Exchange邮箱数据库时,收到如下报错信息提示该邮箱数据库中还有别的邮箱存在,无法将其删除。

This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes.

排错步骤:

1. 为确保可以查看和管理林中的所有收件人,先运行以下命令行

Set-AdServerSettings -ViewEntireForest $True

2. 检查数据库中是否有未迁移的邮箱。如有,将其迁移到别的数据库。

Get-Mailbox -Database "test database"

Get-Mailbox -Database "test database" -ResultSize Unlimited | New-MoveRequest -TargetDatabase "database"


3. 检查数据库中是否有未迁移的存档邮箱。如有,将其迁移。请注意:有时候直接运行以下命令行可能返回结果为空

Get-Mailbox -Database " test database " -Archive


我们需要用下面的命令行来检查

Get-Mailbox | Where ArchiveDatabase -eq "test database"

Get-Mailbox | Where ArchiveDatabase -eq "test database" | New-MoveRequest -ArchiveOnly -ArchiveTargetDatabase "database"

4. 检查数据库中是否有未迁移的仲裁邮箱。如有,将其迁移。

Get-Mailbox -Database "test database" -Arbitration

Get-Mailbox -Database "test database" -Arbitration | New-MoveRequest -TargetDatabase "database"

5. 检查数据库中是否有未迁移的公共文件夹邮箱。如有,将其迁移。

Get-mailbox -Database "test database" -PublicFolder

Get-Mailbox -Database "test database" -PublicFolder | New-MoveRequest -TargetDatabase " Database"


6. 检查数据库中是否有未迁移的审核日志邮箱。如有,将其迁移。

Get-Mailbox -Database "test database" -AuditLog

Get-Mailbox -Database "test database" -AuditLog | New-MoveRequest -TargetDatabase "Mailbox Database 1"


7. 检查数据库中是否有监视邮箱。如有,将其禁用。

Get-Mailbox -Database "test database" -Monitoring | Format-Table Name, DisplayName, Database, Servername

Get-Mailbox -Database "test database" -Monitoring | Disable-Mailbox -Confirm:$false



上面所有的迁移请求是否完成,可以通过以下命令行查看

Get-MoveRequest



8. 完成以上所有的检查后与迁移或禁用邮箱操作后,我们再次运行命令行

首先将数据库卸载

Dismount-Database “test database”


再移除数据库 

Remove-MailboxDatabase “test database”



或在EAC中先卸载数据库(EAC > servers > databases> 选择要移除的数据库 > … >Dismount),然后再将其删除。

如果上述步骤都完成了,但仍然有同样报错无法将数据库删除,我们可以考虑通过ADSIEdit工具将其删除。请注意:微软不推荐用户在ADSIEdit工具中做更改,在更改前请务必做好备份等工作!

在域控上,打开ADSIEdit。连接到 Configuration, Configuration > Services > Microsoft Exchange > {Organisation name} > Administrative Groups > {Administrative-Group-Name} > Databases 然后删除上面的数据库

参考链接:


如果帖子有帮到您的话,请点击左上方“投票”按钮。这将帮助到阅读这个帖子的其他用户。



Viewing all articles
Browse latest Browse all 11117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>