• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2003
  • Last Modified:

renaming domain controller not working

Hi All

I have an issue renaming a domain controller, ill briefly outline what i have done

Needed to get a copy of our domain into a lab environment so took a copy of our DC that was a VM and uploaded it to a standalone esxi host in a lab, cleaned it all up including seized roles, metadata / DNS cleanup etc and is all good, no errors in event logs

Last step was to rename the domain, i followed a guide from MS and this link

Blog to rename domain

Everything was going great, i had renamed the domain and could log back in, ADUC showed the new domain name.

I then followed the guide to use netdom to add the new name to the DC and then make it primary, it just does not seem to work, it says successful but after a reboot the old name is still there,

If i do net dom to add, then make primary

netdom computername dc.olddomain.local /add:dc.newdomain.local
netdom computername dc.olddomain.local /makeprimary:dc.newdomain.local

Before rebooting i type
netdom computername dc.olddomain.local /enumerate

I will see the old and the new name listed

However after rebooting the name has not changed in system properties , if i try and enumerate against the new name i get access denied, if i then type the old name it responds but only shows the old name, the new one that was previously listed it gone

Where do i go from here?

Thanks
0
ncomper
Asked:
ncomper
2 Solutions
 
Sarang TinguriaSr EngineerCommented:
Please go through below link and verify if you have performed all steps correctly
http://www.petri.co.il/rename-windows-server-2008-domain-controllers.htm
0
 
ColinCommented:
You can't rename a domain controller. The only way you can do that is to demote it from being a domain controller, rename it and then promote it again.

If you do manage to do it then it is not a proper Microsoft supported operation and you will always have strange errors for the life of the server.
0
 
ncomperAuthor Commented:
Hi Colin

Apologies i I should have pointed out i am not actually changing the DC's host name, rather the full computername as the domain has changed.

e.g renaming from dc01.myolddomain.local to dc01.mynewdomain.local

This is a supported operation from windows 2003 DFL upwards

Thanks
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
ColinCommented:
Oh ok. So essentially you are dis-joining from the domain and then joining to a new domain anyway.

Have you cleaned up active directory and DNS after joining to the new domain? You can use ADSI edit to look for references to the old domain.
0
 
MaheshArchitectCommented:
Did you forgot to remove old computer name after reboot ?

NETDOM computername your_DC_new_Name /remove:old_FQDN_of_DC

Reprinted from above link

Also you need to repair FRS references as well

Update the FRS or DFS Replication Member Object

Mahesh
0
 
ncomperAuthor Commented:
Hi

I got to the bottom of it in the end, at this stage i still couldnt see the GPO's as following the document you fixed that after, however i changed the order and fixed them first, i then see a gpo that was setting the dns suffix so i changed that and its worked fine, i now have a nice clean and healthy renamed domain

Thanks for the help
0
 
ColinCommented:
Excellent, well done.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now