Rename a domain controller

Intro

In this tutorial, we will see how to rename domain controller in the “rules of the art”.

The name change happens in several times, here is a summary:

  • Add a secondary name to the DC
  • Permutation of the secondary name in primary
  • Deleting the secondary name

Change the name of a domain controller

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

Add a secondary name:

netdom computername dc-old-name.dom.loc /add:dc-new-name-secondary.dom.loc

It is possible to check that the command is taken into account by looking at the Active Directory attribute msDS-AdditionalDnsHostName.

Passer le nom secondaire en primaire :

netdom computername dc-old-name.dom.loc /makeprimary:dc-new-name-secondary.dom.loc

Restart the server to take into account the name change.

Delete the old name:

netdom computername dc-new-name-secondary.dom.loc /remove:dc-old-name.dom.loc 

Complement

It is possible to display the names with the following command:

netdom computername dc-name.dom.loc /enumerate

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!



Related Posts


ADMT: Active Directory Domain Migration Tool
ADMT (Active Directory Migration Tool) is a free Microsoft tool that allows the migration of objects (Users, Computers, and Groups) between two Active Directory domains. Some examples of using ADMT: Enterprise merge to consolidate Active Directory. E

Remove an Active Directory Domain Controller
In this article, we will see how to remove a domain controller in an Active Directory environment. The deletion is done in two steps: Demote the domain controller: remove the controller configuration. Delete roles. Before downgrading the server, ensu

Azure AD Connect: Installing and configuring synchronization
Azure AD Connect Overview In this article, I will explain how to install and configure Azure AD Connect. This solution allows you to synchronize your local directory (AD) to the Azure platform and use the same user accounts. In the following procedur

Leave a Comment