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

[玩转系统] 删除组织中最后一个 Exchange Server

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

删除组织中最后一个 Exchange Server


当您想要卸载最后一个本地 Exchange Server 或想要卸载一台 Exchange Server 时,这是有区别的。另外,什么时候应该删除组织中的最后一个 Exchange Server?在本文中,我们将向您展示如何停用最后一台 Exchange Server。

介绍

您有 Exchange 混合配置吗?确保您首先遵循这两篇文章:

  1. 删除 Exchange 混合配置

  2. 卸载 Azure AD Connect

在上一篇文章中,我们讨论了如果保留本地 Active Directory,则需要保留 Exchange Server 进行管理。但是,如果您不在本地保留 Active Directory 并完全迁移到云端,则可以删除最后一个 Exchange Server。

假设您没有 Exchange 混合配置并且想要停用最后一台 Exchange Server;您可以按照以下相同步骤操作。

在你开始之前

以管理员身份运行 Exchange 命令行管理程序。然后,运行 Set-ADServerSettings cmdlet,包括 -ViewEntireForest 参数。它可以让你查看整个森林中的物体。

[PS] C:\>Set-ADServerSettings -ViewEntireForest $true

删除移动请求

您必须删除所有移动请求,否则在卸载最后一个 Exchange Server 时,准备情况检查中会显示错误。准备情况检查将验证 Exchange Server 卸载安装是否可以继续。

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

删除离线地址簿

删除脱机通讯簿。

[PS] C:\>Get-OfflineAddressBook | Remove-OfflineAddressBook -Confirm:$false

禁用邮箱

运行以下命令禁用所有邮箱,包括系统邮箱。

[PS] C:\>Get-Mailbox -ResultSize Unlimited | Disable-Mailbox -Confirm:$false

[PS] C:\>Get-Mailbox -ResultSize Unlimited -Archive | Disable-Mailbox -Confirm:$false

[PS] C:\>Get-Mailbox -ResultSize Unlimited -PublicFolder | Disable-Mailbox -Confirm:$false

[PS] C:\>Get-Mailbox -AuditLog | Disable-Mailbox -Confirm:$false

[PS] C:\>Get-Mailbox -Arbitration | Disable-Mailbox -Arbitration -DisableLastArbitrationMailboxAllowed -Confirm:$false

删除邮箱数据库

删除邮箱数据库。

[PS] C:\>Get-MailboxDatabase | Remove-MailboxDatabase -Confirm:$false

从控制面板删除最后一个 Exchange Server

关闭 Exchange Server 上所有打开的程序。转到控制面板,然后单击程序和功能。在程序列表中选择 Exchange Server。单击卸载

注意:禁用防病毒/Windows Defender 以加快 Exchange 卸载过程。

在我们的示例中,我们将删除 Microsoft Exchange Server 2019 累积更新 11。

[玩转系统] 删除组织中最后一个 Exchange Server

删除 Exchange 服务器

单击下一步从组织中删除最后一个 Exchange Server。

[玩转系统] 删除组织中最后一个 Exchange Server

准备情况检查

先决条件分析将开始并检查安装是否可以继续进行删除。点击卸载

[玩转系统] 删除组织中最后一个 Exchange Server

假设您收到以下错误。这意味着邮箱数据库包含一个或多个邮箱。完成最初的步骤,禁用邮箱并删除 Exchange Server 上的邮箱数据库。之后,重试 Exchange Server 卸载向导。

[玩转系统] 删除组织中最后一个 Exchange Server

以下是更易于阅读的错误输出格式:

Error:
Uninstall can't continue. Errors:
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes, Audit mailboxes.
To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>.
To get a list of all mailbox plans in this database, run the command Get-MailboxPlan.
To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive.
To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder.
To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration.
To get a list of all Audit mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -AuditLog.
To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>.
To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive.
To disable a public folder mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder.
To disable a Audit mailbox so that you can delete the mailbox database, run the command Get-Mailbox -AuditLog | Disable-Mailbox.
Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>.
If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox.
Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlanID> -Database <Database ID>.
It was running the command 'Remove-MailboxDatabase 'CN=DBgoogol,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=EXOIP,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=exoip,DC=local' -whatif'.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.UnwillingToRemoveMailboxDatabase.aspx

设置进度

第一步是从邮箱角色中删除邮箱服务。

[玩转系统] 删除组织中最后一个 Exchange Server

13 步中的第 5 步正在进行中。

[玩转系统] 删除组织中最后一个 Exchange Server

13 步中的第 9 步正在进行中,即停止服务。

[玩转系统] 删除组织中最后一个 Exchange Server

设置完成。单击完成并重新启动 Windows Server。

[玩转系统] 删除组织中最后一个 Exchange Server

删除 Exchange Server 时是否遇到错误?阅读文章卸载 Exchange 时检测到安装不完整。

验证删除 Exchange Server

检查 Exchange Server 是否已从程序和功能中删除。

[玩转系统] 删除组织中最后一个 Exchange Server

您已成功从组织中删除最后一个 Exchange Server。

不要忘记删除 Exchange Server 上的其他工具,例如 SCOM 或备份代理。之后,删除 IP 和 DNS 条目。最后,删除 ADUC(Active Directory 用户和计算机)中的 AD 对象。

继续阅读:如何从 Active Directory 中删除 Exchange »

结论

您了解了如何删除组织中最后一个 Exchange Server。在开始卸载 Exchange Server 之前,必须删除邮箱数据库。当 Exchange Server 完成删除后,重新启动服务器。

您喜欢这篇文章吗?您可能还喜欢为本地配置 Azure AD 密码保护。不要忘记关注我们并分享这篇文章。

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

取消回复欢迎 发表评论:

关灯