Saturday, 9 August 2014

How to: Rename a Domain Controller running Windows Server 2008R2

I stupidly forgot to rename a new Domain Controller before adding it to the domain. The NetDom tool can be used to change the name of a Domain Controller.

netdom computername OldDCName /add:NewDCNameFQDN
netdom computername OldDCName /makeprimary:NewDCNameFQDN

Restart the server at this point, and use the following command to remove the legacy SPN's.
netdom computername NewDCNameFQDN /remove:OldDCNameFQDN

You then need to update your important DNS records to match the new server name. Your domain will not function if you do not update the Service Location Records.

Comments system

Disqus Shortname