HomeMicrosoftHow to Migrate Active Directory 2012 to 2022

How to Migrate Active Directory 2012 to 2022

This article describes how to migrate Active Directory 2012 to 2022 (Windows Server 2022). The process is the same, regardless of whether you choose Server 2019 or Server 2022. But I recommend migrating straight to Windows Server 2022. I am writing this article to help the server admin migrate an existing Active Directory domain controller that is working on Windows Server 2012 R2 (Server2012) to Windows Server 2020 (Server2022). So, let’s get started.

First, we need to install Windows Server 2022 on a new physical computer or virtual machine. Join Windows Server 2022 to the domain. If you are more technically experienced with Windows Server, you could elect to install Server Core 2022 and then perform the necessary steps with PowerShell or by using remote connections to the new server using Server Manager or Windows Admin Center

Migrate Active Directory 2012 to 2022

This is a very easy process, but first, you can test it in your test environment.

In the scenario in my test environment, I have two Windows servers and one local domain server (jamiltech.local).

Virtual MachineOSRoleIP Address
Server20122012 R2Primary Domain Controller192.168.241.150
Server20222022Secondary Domain Controller192.168.241.160

We need an account for migration procedure which is a member of administrative groups (Enterprise, domain, and schema admins).

You should configure the correct IP address on Server 2022, the same time on new server 2022 needs to be fully patched.

When all these things are completed, then join Server 2022 to the existing domain.

Install Additional Domain Controller

After joining to the domain controller, you can logon with the administrative account on server 2022. Then open server manager, and choose “Add Roles and Features” from Server Manager.

Server manager

Click next

Add roles and features wizard

You must select Role Based installation and then click next.

Role-based or feature-based installation

Select the destination server and then click next.

Select a server from the server pool

On this screen, you must choose the box “Active Directory Domain Services”.

Active directory domain services role

Click on add features button, and the necessary features will be adding the role.

Add features that are required

Click next

Active directory domain services role

Select next

Add roles and features

You can see information about ADDS, click next.

Active directory domain services AD DS

On the Confirm installation page, to start domain controller installation click the “install” button.

Confirm installation selections ADDS

Promote this Server to a Domain Controller

We need to add a new Server 2022 as an Additional Domain Controller to our existing domain that’s why we need to ”Add a domain controller to an existing domain”.

Promote this server to a domain controller

Deployment configuration window, select your primary domain (existing domain), and then click next.

Select the deployment operation

Confirm “DNS” and “GC” roles are selected.
Site name – Default first site name (default)
DSRM password – We should keep that password configure here, cause any of the domain controller (DC) restore process we need it. Click next

Domain controller options

Click next

Specify DNS delegation options

We can select the replication partner on the additional options page. If you choose the “Any domain controller” option, it will select the nearest replication partner. Click next

Specify additional replication options

Confirm the paths and then click ok.

Active directory domain services configuration wizard

The new features become with Server 2012 R2 update forest, schema, and domain prep automatically also available with Server 2022. Click next

Preparation options

You can review options so far and then click next.

Review your selections

This page verifies the system prerequisite check, if it shows valid then you can click on the “install” button.

All prerequisite checks passed successfully

Additional domain controller configuration is in progress.

Additional domain controller installation

When all these processes is done, the new server 2022 adds an existing domain as an additional domain controller. Click close

You’re about to be signed out

When you restart the new 2022 additional domain controller and log on you can see new roles already added on the domain controller.

Server manager

View Server 2022 Domain Controller

You should see the new domain controller listed in your Active Directory.

Active directory users and computers

Change the Alternative DNS Server

Open network properties and then change the alternate DNS IP Address.

Internet protocol version 4 properties

Run Windows PowerShell and then type the below command to check the Master Operation role.

netdom query fsmo
netdom query fsmo PowerShell

Migrating FSMO Roles to Windows Server 2022

In the active directory users and computers, Right-click on your local domain (jamiltech.local) and then choose Operations Masters.

Migrate Active Directory 2012 to 2022

Choose the RID tab and then Change button.

Change operations master RID

Select yes

Transfer operations master role?

Click ok

Operations master successfully transferred

Select the PDC tab and then choose the Change button to change the operation master role.

Change operations master PDC

Click yes and then ok.
Now click on the Infrastructure tab and then the change button.

Change operations master infrastructures

Click on yes and then ok.
Select close.

Change Active Directory Domain Controller

Run Active Directory Domain and Trusts, right-click on Active Directory Domain and Trusts, and then choose Change Active Directory Domain Controller.

Active directory domains and trusts

Change the Directory Server page, and select the box “this Domain Controller or AD LDS instance”. Select your new Windows Server 2022 directory server and then choose ok.

Change directory server

Right-click on Active Directory Domains and Trusts and then choose Operations Manager.

Active directory domains and trusts

Choose change to transfer the domain naming master role to the Windows Server 2022.

Domain naming operations master

Select Yes

Operations master successfully transferred

Click ok

Operations master successfully transferred

In the Server2022.jamiltech.local server, run PowerShell and then enter the below command to change the Schema Master.

regsvr32 schmmgmt.dll

Click ok

Regsvr32 schmmgmt.dll PowerShell

Change Schema Master

Now we will change Schema Master, enter mmc and then press enter.

mmc PowerShell

Choose the File tab and then click on Add/Remove Snap-in.

Console add/remove snap-ins

Add or Remove Snap-ins page, select Active Directory Schema, select Add button, and then ok.

Add or remove snap-ins

In the Console root, right-click on Active Directory Schema and choose Change Active Directory Domain Controller.

Console root change active directory

Click on Server2022.jamiltech.local server and then choose ok.

Change directory server

Click ok to proceed.

Active directory schema

Right-click on Active Directory Schema and then choose Operations Master.

Console root operation master

Click on Change to transfer the schema master role to Server 2022 (Server2022.jamiltech.local).

Migrate active directory change schema master

Select Yes

Active directory schema yes

Click ok to proceed.

Operation master successfully transferred

In PowerShell, enter the below command and then press enter.

netdom query fsmo

The FSMO roles successfully transferred to Active Directory Domain Controller Server 2022.

Netdom query fsmo PowerShell

Transfer FSMO Roles with PowerShell

Transfer the FSMO role to an additional domain controller. Follow the below command
For Forest wide roles

Get-ADForest | choose schemamaster,domainnamingmaster

For Domain wide roles

Get-ADDomain | select ridmaster,pdcemulator,infrastructuremaster
Get-ADDomain command

Change Global Catalog

Run Active Directory Sites and Services, expand Sites, expand Default-first-site, and then expand DC2022.
Right-click on NTDS Settings and then choose properties

Active directory sites and services

Deselect the Global Catalog box and then click ok.

NTDS system properties global catalog

Now you can uninstall Active Directory from Server 2012 R2 and then join the server to the workgroup. Visit this article for more detail.

Read more: How to Active Directory Migration Server 2019 to 2022.

Refer to this article: How to Upgrade Server 2012 to 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

1 COMMENT

  1. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how could we communicate?

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

what is cryptocurrency and bitcoin on How to Backup and Restore IIS Configuration
경기광주출장안마 on How to Backup and Restore IIS Configuration
영등포출장마사지 on How to Backup and Restore IIS Configuration
Twalsu light mirror for vanity on How to Backup and Restore IIS Configuration
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