Windows Server:如何正确重命名 Active Directory 域控制器

Summary: 本文介绍重命名 Active Directory (AD) 域控制器 (DC) 的过程。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

注意:重命名 DC 并不像在“系统属性”窗口中更改服务器名称那样简单。这似乎有效:操作完成且没有任何错误,服务器重新启动。但是,尝试以这种方式重命名 DC 可能会导致身份验证问题,包括无法从 DC 登录域。如果不从备份中还原 DC 或重新安装操作系统,可能无法从这些问题中恢复。

通常不需要重命名 DC。如果必须这样做,建议的过程是降级 DC、重命名并重新升级它。如果不可行,以下步骤提供已在 Windows Server 2019 中执行的替代方法,不会产生不利影响。在显示的命令中,<oldname> 表示 DC 的旧完全限定域名 (FQDN),newname<> 表示其新 FQDN。
 
提醒:开始此过程之前,请确保 DC 已完全备份。DC 的可用备份必须包括其系统状态。此外,验证 AD 和 SYSVOL 复制在整个域中是否正常运行。
  1. 在提升的命令提示符下,键入 netdom computername <oldname> /add:<newname>。输出应指示已成功将新名称添加为 DC 的备用名称。
    netdom computername oldname /add:newname 命令的输出
  2. 要确认已添加新名称,请键入 netdom computername <oldname> /enumerate。这两个名称都应在输出中列出。
    netdom computernameoldname /enumerate 命令的输出
  3. 键入 netdom computername <oldname> /makeprimary:<newname> 将新 FQDN 设置为 DC 的主要名称。输出应指示此操作成功。它还将指示需要重新启动。
    netdom computername oldname /makeprimary:newname 命令的输出
  4. 重新启动 DC。
  5. 启动提升的命令提示符并键入 netdom computername <newname> /remove:<oldname> 从 DC 的名称列表中删除旧的 FQDN。
    netdom computername newname /remove:oldname 命令的输出
  6. 通过键入以下命令确认已删除旧名称 netdom computername <newname> /enumerate。新 FQDN 应该是输出中列出的唯一名称。DC 现已更名。
    netdom computername newname /enumerate 命令的输出

Affected Products

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2
Article Properties
Article Number: 000226230
Article Type: How To
Last Modified: 18 Dec 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.