In this Article, I am going to explain how to rename the Domain Controller.
As an Administrator, Renaming the Domain Controller is not the right way but in some cases, it is required due to some previous wrong names.
Current Host name of the Domain Controller
Since the name assignment was wrongly provided, we cannot simeply rename as we do in workstations because this is a domain controller. Hence we need to do it using NETDOM Command
Step 1: We need to add a second name
Syntax:
netdom computername <CurrentComputerName> /add:<NewComputerName>
Step 2: Make a second name as the primary name
netdom computername <CurrentComputerName> /makeprimary:<NewComputerName>
Now we have added a second name and made it Primary. Reboot the Domain Controller to get this applied.
After Reboot, you can see that now domain controller name has been renamed
Step 3: Remove the Old name
netdom computername <NewComputerName> /remove:<OldComputerName>
Now run DCDIAG or REPADMIN command to verify the Replication Status.