简体   繁体   English

从 Active Directory 中删除旧域名

[英]Remove old domain name from Active Directory

I have setup Active Directory on Windows Server 2019 with forest name as abc.def.net but we got to know that we need to change this domain name to ab.de.net .我已经在 Windows Server 2019 上设置了 Active Directory,森林名称为abc.def.net但我们知道我们需要将此域名更改为ab.de.net

Although I managed to make changes but now users are able to login using both the domains.尽管我设法进行了更改,但现在用户可以使用这两个域登录。 I want users to only login using the second domain name - ab.de.net .我希望用户只使用第二个域名 - ab.de.net

In fact if there is any way I can delete the old domain, please let me know.事实上,如果有什么方法可以删除旧域,请告诉我。

Regards, Pushp问候, Pushp

I have reproduced your scenario in my environment and I am able disconnect and delete the old domain.我已经在我的环境中重现了您的场景,并且可以断开连接并删除旧域。

Earlier my DC was connected with contoso.local domain .You can see in below picture.早些时候,我的 DC 与contoso.local domain连接。您可以在下图中看到。

在此处输入图像描述

Now I have added a new zone ab.de.net using DNS Manage->ForwardLookupzone现在我使用 DNS Manage->ForwardLookupzone 添加了一个新区域ab.de.net

changed DC domain to ab.de.net将 DC 域更改为ab.de.net

在此处输入图像描述

Now My DC users is shown up for both the domain.现在,两个域都显示了我的 DC 用户。

在此处输入图像描述

Now Open cmd and type rendom /clean .现在打开 cmd 并输入rendom /clean This is to remove references of the old domain name from AD.这是为了从 AD 中删除旧域名的引用。

Next, type rendom /end .接下来,输入rendom /end This is to unfreeze the forest configuration and allow further changes.这是为了解冻林配置并允许进一步更改。

Once I have run the above commands it has removed the reference of my old domain.一旦我运行了上述命令,它就删除了我的旧域的引用。

在此处输入图像描述

You can refer this Document for the detailed explanation.详细说明可以参考这个文档

OR you can directly delete the Old Domain from here as well.或者,您也可以从此处直接删除旧域。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM