Warning: Undefined array key "titleWrapper" in /home3/jamil642r/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/toc/class-block-toc.php on line 103
HomeServer 2022How to Change Domain Name in Server 2022

How to Change Domain Name in Server 2022

In this article, we will teach you how to change domain name on Windows Server 2022. One of the prime functions of Windows Server 2022 is to act as a domain controller so that the objects (users, computers, etc.) of the domain have a central unit to access services and act as administrators. We are able to provide management for each of them through policies, roles, and services. Visit the Woshub website to learn in detail how to change a domain name.

A task that isn’t very common but that can happen is the need to change the domain name, whether for an update of the organization name, the sale of the company, legal adjustments, etc., but this method requires some steps. Which we will explore in this article and thus accurately change the domain name in Windows Server 2022.

Change Domain Name

First, we will need to check the current domain name in the Server Manager.

Server manager local server

Click on the Tools tab, and then DNS.

Server manager tools menu

In the DNS manager console, we will right-click on “forward lookup zones,” and in the options displayed, we will choose “New zone.”

DNS manager

Welcome to the new zone wizard. Choose next.

Welcome to the new zone wizard

Leave the zone type (primary zone) selected, and then choose next.

New zone wizard type

On the Active Directory zone replication scope page, choose the box “To all DNS servers running on domain controllers in this domain: jamiltech.local and choose next.

Active directory zone replication scope

In the zone name window, we enter the name of the new domain and choose next.

Change domain name

Dynamic update: choose the box Allow only secure domain updates… and click next.

Change domain name dynamic update

Verify the new zone wizard summary and click Finish.

Completing the new zone wizard

Now you can see “newdomain.local” in the DNS manager.

DNS manager

How to Generate Random List

Search the command prompt and then run an administrator.

Search command prompt

In the console, enter the below command to generate a domain list.

rendom / list
Random /list command

The above command will create a file with the registered domains. You can see this file on the C: drive.

This PC c drive

We open the file and see the content.

Notepad

Now we open the domain list file with Notepad for editing. Click on the Edit menu and choose Replace.

Notepad edit menu

We need to change the name of the current domain to the new domain. Type the existing domain and the new domain (newdomain) and click Replace All.

Notepad replace

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

Notepad replace domain name

Go back to the command prompt and then type the below command.

random /showforest

This command will show the structure of your new domain that we have registered.

Random /showforest command

Now we run the following command to update this information:.

rendom / upload
rendom / upload command

This is the time to prepare the domain name change by entering the following command:

rendom / prepare
rendom / prepare

Enter the below command to execute the script.

Random /execute

Verify the script was executed successfully.

Random execute command

You are about to be signed out; click on Close.” The server will restart.

You are about to be signed out

On the Windows Server 2022 login screen, we need to select the option “other user.” There, we login with the new domain and user.

Windows server 2022 login screen

How to Fix Domain Name Dependencies in Group Policy Objects

After logging in, access the CMD as an administrator.

Search command prompt

To fix domain name dependencies in Group Policy Objects, enter the below command.

Gpfixup /olddns:jamiltech.local /newdns:newdomain.local
Gpfisup command

We renamed the databases.

Gpfixup tool

To clean up loose processes, type the following command:.

rendom / clean
rendom /clean command

Finally, complete the process with the below command.

rendom / end
rendom /end command

How to Verify New Domain

In the server manager, go to the Tools tab and open “Active Directory Users and Computers”.

Server manager dashboard

Verify the new domain.

Active directory users and computers

Also verify active directory domains and trusts.

Active directory domains and trusts

This has been the method for changing the domain name in Windows Server 2022.

Jamil
Jamilhttp://jamiltech.com
A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

fitspresso analysis on How to Reset Microsoft 365 Password
historical landmarks tours for history buffs on How to Add Hyper-V Server Altaro VM Backup
9780443186882 PDF download on How to Migrate Active Directory 2012 to 2022
Shaik Mohammad Jaheer on How to Enable Night Light on Windows 11