Thursday, May 26, 2016

Renaming AD hostname

In this exercise I want to show you how to rename AD Server Hostname from LON-DC1.adatum.com to MIZI01.cpx.local..
Now, if their domain controllers are running 2012 server you are good-to-go, because starting with 2003, you can rename the domain name.
** Domain Controllers configured as a Certificate Authority (CA) cannot be renamed
So.. let’s get started..
1 – Here what I have is a Server 2012 call LON-DC1.adatum.com, and i going torename it to MIZI01.cpx.local.. this Windows Server 2012 previous domain name was adatum.com and if you want to know how to change domain name, please refer to my last post here https://mizitechinfo.wordpress.com/2013/06/10/simple-guide-how-to-rename-domain-name-in-windows-server-2012/ 1
2 – Next, open CMD.. and this is the SYNTAX : netdom computername <currentDC FQDN> /add:<newDCName FQDN> 
— so in your cmd, type netdom computername LON-DC1.adatum.com/add:MIZI01.cpx.local
2

3 – After you get “The command completed successfully”, the next syntax is : netdom computername <currentDC FQDN> /makeprimary:<newDCName FQDN>
— so in your cmd, type netdom computername LON-DC1.adatum.com/makeprimary:MIZI01.cpx.local
— After you get  “The command completed successfully”.. Restart your Server..
3
4 – After your Windows Server 2012 domain server reboot.. go to System Properties and confirm that the new server hostname is listed.
4

5 – Next, open CMD and the next syntax is : netdom computername <newDCName FQDN> /remove:<oldDCName FQDN>
—  This command is to remove old Server Hostname which is LOC-DC1..
— so in your CMD type this : netdom computername MIZI01.cpx.local/remove:LON-DC1.adatum.com and press enter…
5
6 – your last step, do confirm that your Domain Server running without any issue, on the CMD run this command : dcdiag
6
7

No comments:

Post a Comment