Rename a domain controller

Rename a domain controller

11 November 2019 0 By Rached Chader

Depending on the role installed, it is possible to rename a domain controller.

Take care

If you have an Exchange server, I do not recommend the operation.

It is necessary to ensure the functional level. The latter must be at least Windows Server 2003.

You Can not Rename a Domain Controller That Is Certification Authority (AD CA)

The commands below are to be executed on the controller to rename as Administrator.

Adding a secondary name:

[cc lang=”php” tab_size=”2″ lines=”40″]
netdom computername dc-old-name.local /add:dc-new-name.local
[/cc]

t is possible to check that the msDS-AdditionalDnsHostName command is taken into account.

Pass the secondary name in primary:

[cc lang=”php” tab_size=”2″ lines=”40″]

netdom computername dc-old-name.local /makeprimary:dc-new-name.local

[/cc]

Restart the server to take into account the name change.

Delete the old name:

[cc lang=”php” tab_size=”2″ lines=”40″]
netdom computername dc-new-name.local /remove:dc-old-name.local
[/cc]

Show the names with the following command:

[cc lang=”php” tab_size=”2″ lines=”40″]
computername dc-name.dom.local /enumerate
[/cc]

Views: 793