How to migrate Active Directory from Windows 2019 Server to Windows 2022 Server?

 How to migrate Active Directory Windows 2019 Server to Windows 2022 Server?

  1. We are going to migrate the DC2019 Active directory (with OU and Users) into DC2022 so let's make both servers in our Hyper -V.

Note: In DC2019 you should create OU and Users.

  • On the right side server, we have employees OU inside 2 OU (sales and marketing) + users also.

  • We are going to migrate all the OU and users from DC2019 to DC2022. 



Right Click on Domain name > choose Properties

Domain Functional level = windows server 2016

And Forest functional level = windows server 2016

  1. Now go to Windows server 2019 and check which server has All roles.

    • Open command prompt; and type below commands

You will see all the roles’ owner name is DC2019


  1. Before do anything, in DC2022 Server just change the 


  • Computer name : DC2022

  • Give static IP : 192.168.0.3 (you can give any)

  • But use DNS server = DC2019 IP address (192.168.0.2)

Now try to ping from DC2022 to DC2019.

  • Open powershell or cmd and ping to main server (DC2019)

  • You should see, it pinged. 


  1. Now to perform the migration, we have to add  roles Active Directory Users and computers in DC2022 also.


To Promote this server to a domain controller:

  • Choose to add a domain controller to an existing domain option.

  • Put your Domain name: like: akshrestha.com

  • Then finish this process.


  1. Now after restart the DC2022,  Open Server manager


  • - Click on Tools > Active directory Users and computers

  • - click on “Domain Controllers”  you will see both servers are listed in Domain controllers.


6. Now Click on tools again > Active directory sites and services.  We can check whether the servers are replicating or not.


  • click on “Default-First-Site-Name

  • click on Servers

  • click on DC2019 and DC2022 

You will see both the servers listed.

7. Now Select the DC2022: (Replication time)

  • Right click on DC2022 

  • Select All tasks

  • Click on “Check Replication Topology

  • Click ok.

  • You will see the right side of the below windows “automatically generated” link.

Now we have to right click on that link and click on Replicated Now option.

Click ok.

8. Now Go to DC2019 Server manager 

  • Click on tools > Active directory sites and services 

  • Right click on DC2019 

  • Select All tasks

  • Click on “Check Replication Topology

  • Click ok.

  • You will see the right side of the below windows “automatically generated” link.

Now we have to right click on that link and click on Replicated Now option.


You can see both the servers are Replicated. 


9. Now we have to disconnect from “Global Catalog”  in DC2019 from both servers.


DC2022

  • Right click on DC2019 > NTDS Settings

  • Click on properties

  • Uncheck the “Global Catalog” option and click on the ok button.


10. Now time to transfer FSMO role from DC2019 to DC2022 server. So go to DC2022 server


  • Open Windows powershell command from DC2022.

  • Type  > ntdsutil command (enter)

(NTDSUTIL is a command-line tool in Microsoft Windows that is used for managing Active Directory (AD) databases, including performing maintenance tasks and database operations)

  • Than type : roles

  • Fsmo maintenance: connections

  • Server connections: connect to server dc2022

  • It will binding to dc2022

  • Type quit 

  • Type help command , you will see the all FSMO transfer commands








The below commands are we have to perform to transfer the all FMSO roles from DC2019 to DC2022


  • We have to perform all 5 commands one by one. 

  • Copy the first command:

    • 1.Transfer infrastructure master

    • Paste it like the right side screenshot.

    • Clock on “Yes” 


  • Copy the second command:

    • 2.Transfer naming master

    • Paste it like the right side screenshot.

    • Clock on “Yes”

  • Copy the third command:

    • 3.Transfer PDC

    • Paste it like the right side screenshot.

    • Clock on “Yes”

  • Copy the third command:

    • 4.Transfer RID master

    • Paste it like the right side screenshot.

    • Clock on “Yes”

  • Copy the third command:

    • 5.Transfer schema master

    • Paste it like the right side screenshot.

    • Clock on “Yes”

    • At the last exit from maintenance just type 2 time “q” 


Now check the who is the current own of FSMO role follow below command:

  • You will see it was change from DC2019 into DC2022

 

Before FSMO Role (DC2019)


After FSMO Role (DC2022)



Now we can say we successfully migrated the AD and Transfer FSMO role from DC2019 to DC2022.

Thank you .


Comments

Popular posts from this blog

To increase the attachment file size limit in Exchange Server 2019

How to Schedule back up, backup once, and restore or recover the backup?

Common Exchange Online server issues and solutions