+4 votes
387 views
Rename Domain Windows Server 2022

in WindowsServer by (552k points)
reopened | 387 views

1 Answer

+5 votes
Best answer

How to change domain name in Windows Server 2022

One of the main functions of Windows Server 2022 is to act as a domain controller so that the objects (computers, users, printers, etc.) of the domain have a central point to access services and as administrators we are able to give management of each of them through roles, services and policies..

 

A task that is not very common, but that can occur, is the need to change the domain name either for an update of the company name, legal adjustments, sale of the company, etc., but this process requires some steps. which you will see in this tutorial and thus correctly change the domain name in Windows Server 2022.

 

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

How to change domain name in Windows Server 2022

 

Step 1

The first thing we will do is check the current domain name from the Server Manager:

 

image

 

 

Step 2

Right there, we are going to access "Tools - DNS":

 

image

 

Step 3

In the DNS console, we will right click on "Direct search zones" and in the options displayed we select "New zone":

 

image

 

 

Step 4

The following wizard will be displayed:

 

image

 

 

Step 5

We click on Next and leave the "Main zone" box active:

 

image

 

 

Step 6

Click Next and activate the box "For all DNS servers running on domain controllers in this domain:":

 

image

 

Step 7

In the next window we enter the name of the new domain:

 

image

 

 

Step 8

Click on Next and in this window we establish the way in which the updates will be applied:

 

image

 

 

Step 9

Click Next to see a summary of the zone to create:

 

image

 

 

Step 10

Click Finish to complete the process and see our new created area:

 

image

 

 

Step 11

After this we access the CMD as administrator:

 

image

 

 

Step 12

In the console we execute "rendom / list":

 

image

 

 

Step 13

This will create a file with the registered domains, in the file explorer we see this file created:

 

image

 

 

Step 14

We open the file and see its content:

 

image

 

 

Step 15

Now we open the file with the notepad for editing, in the Edit menu we click on Replace:

 

image

 

 

Step 16

We are going to change the name of the current domain to the new one:

 

image

 

 

Step 17

We click on "Replace all":

 

image

 

 

Step 18

Finally, replace the current domain name with the new one in the "NetBiosName" line. Apply the changes.

 

 

image

 

 

Step 19

We go back to the command prompt console, there we execute the following. This command will display the structure of the new domain that we have registered.
 rendom / showforest 
image

 

 

Step 20

Now we run "rendom / upload" to update this information:

 

image

 

Step 21

Now is the time to prepare the domain name change, to do so, execute "rendom / prepare":

 

image

 

 

Step 22

We can see that the correct response is obtained from the domain controllers, now we carry out the change action, for this we execute:
 rendom / execute 
image

 

 

Step 23

After this we will see the following message in Windows Server 2022:

 

image

 

 

Step 24

Click Close to close the session and the server will restart:

 

image

 

 

Step 25

On the lock screen we select the option "Another user", there we enter the new domain and user:

 

image

 

 

Step 26

We log in and access the CMD as administrator:

 

image

 

 

Step 27

In the console we execute the following to rename the new domain:
 gpfixup / olddns: "old domain" / newdns: "new domain" 
image

 

 

Step 28

Now we rename the databases.
 gpfixup / oldnb: "old domain" / newnb: "new domain" 
image

 

 

Step 29

Run "rendom / clean" to clean up loose processes:

 

image

 

 

Step 30

Finally we execute "rendom / end" to complete the process:

 

image

 

 

Step 31

Let's go to "Tools - Active Directory Users and Computers":

 

image

 

 

Step 32

We check the new domain:

 

image

 

 

Step 33

Let's go to "Tools - DNS":

 

image

 

 

Step 34

There we validate the new domain:

 

image

 

This has been the process to change the domain name in Windows Server 2022 and have its functions..

 


by (3.5m points)

Related questions

+3 votes
1 answer
asked Mar 15, 2021 in WindowsServer by backtothefuture (552k points) | 212 views
+5 votes
1 answer
+3 votes
1 answer
+3 votes
1 answer
asked Feb 24, 2021 in WindowsServer by backtothefuture (552k points) | 236 views
+4 votes
1 answer
asked Feb 16, 2021 in WindowsServer by backtothefuture (552k points) | 171 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users