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.
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.
In fact if there is any way I can delete the old domain, please let me know.
Regards, 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.Now I have added a new zone
ab.de.netusing DNS Manage->ForwardLookupzonechanged DC domain to
ab.de.netNow My DC users is shown up for both the domain.
Now Open cmd and type
rendom /clean. This is to remove references of the old domain name from AD.Next, type
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.