Stéphane Thirion
  • Home
  • Consulting – Raidho
  • homelab
3K
0
0
0
Stéphane Thirion
Stéphane Thirion
  • Home
  • Consulting – Raidho
  • homelab
  • VMware
  • vSphere
  • Windows 2022

Migrating FSMO roles Windows 2022 Server

  • January 3, 2022
  • Stephane Thirion
Total
1
Shares
0
0
1
0
0
0
0

As Microsoft Windows 2022 became (almost) available, this is time again to move the FSMO roles from Windows Server 2019 to Windows Server 2022. Before destroying everything to rebuilt, I like to migrate my Active Directory and keep the work, policies and OU organisation I got for years. For this one, I wanted to migrate my forest to 2022 by adding a Domain Controller to my existing Windows 2019 Active Directory, migrating all the FSMO roles to this new Domain Controller and then removing the Windows 2016 Server once everything have been done.

Details : My Windows Server 2019 Domain Controller is DC01.raidho.local The new Windows 2022 Server is DC02.raidho.local

my domain name is  raidho.local

First, to deploy the AD role (DCPromo) on my new Windows 2022 Server machine, i used Powershell commands as follow :

Take a note of your site name and make sure to replace it by the correct value. in bold the value you should change

Installing Role   
#
# Windows PowerShell script for AD DS Deployment
#
 
Get-WindowsFeature AD-Domain-Services | Install-WindowsFeature 
Install-ADDSDomainController `
-NoGlobalCatalog:$false `
-CreateDnsDelegation:$false `
-CriticalReplicationOnly:$false `
-DatabasePath "C:WindowsNTDS" `
-DomainName "RAIDHO.LOCAL" `
-InstallDns:$true `
-LogPath "C:WindowsNTDS" `
-NoRebootOnCompletion:$false `
-ReplicationSourceDC "DC01.raidho.local" `
-SiteName "Default-First-Site-Name" `
-SysvolPath "C:WindowsSYSVOL" `
-Force:$true

At the end of the execution of this first script, the new Windows 2022 Server Domain Controller will reboot.

Once it’s done, I connected on the Windows 2022 Domain Controller  to use this powershell script and move the FSMO roles from the Windows Server 2016 Domain Controller

Source code   
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole 0,1,2,3,4

If you want to make sure everything change the way you intend to, you can use this short Powershell script to make sure everything is ok

Check FSMO   
Get-ADDomain | Select-Object InfrastructureMaster, RIDMaster, PDCEmulator
 
Get-ADForest | Select-Object DomainNamingMaster, SchemaMaster
 
Get-ADDomainController -Filter * |
 
     Select-Object Name, Domain, Forest, OperationMasterRoles |
 
     Where-Object {$_.OperationMasterRoles} |
 
     Format-Table -AutoSize

The result :

2022 Domain Controller is up and running, now I want to get rid of the 2016 one, the same way as I did for the DCpromo, I will demote the old controller using this Powershell script :

Source code   
#
# Windows PowerShell script for AD DS Deployment
#
 
Import-Module ADDSDeployment
Uninstall-ADDSDomainController `
-DemoteOperationMasterRole:$true `
-ForceRemoval:$true `
-Force:$true

You have to specify the password for the local administrator account of the machine once it will have been demoted.

And at last, if you want to upgrade the functional level of your Active Directory to 2016/2019 /2022 if you’ve not done this already:

Upgrade Funct. Lev.   
Set-ADDomainMode –identity raidho.local -DomainMode Windows2016Domain
Total
1
Shares
Tweet 0
Share 0
Share 1
Share 0
Share 0
Share 0
Share 0
Related Topics
  • Active directory
  • FSMO
  • Microsoft
  • Migration
  • Windows 2022 Server
Stephane Thirion

Previous Article
  • Cloud
  • Docker
  • Kubernetes
  • Raspberry

Kubernetes cluster with Raspberry Pi(s)

  • December 28, 2021
  • Stephane Thirion
View Post
Next Article
  • Docker
  • Experience
  • Kubernetes
  • Linux
  • Raspberry

Kubernetese cluster use with Crypto Currency (Monero)

  • January 4, 2022
  • Stephane Thirion
View Post
You May Also Like
View Post
  • Citrix
  • Citrix Virtual Apps and Desktops
  • Cloud
  • DaaS
  • Microsoft
  • PowerShell
  • VMware
  • vSphere

Create vmware service account for MCS Citrix

  • Stephane Thirion
  • February 28, 2023
View Post
  • Experience
  • Linux
  • VMware
  • vSphere

multipathd errors in /var/log/syslog

  • Stephane Thirion
  • August 2, 2022
View Post
  • ArchY.net Site
  • Azure
  • Citrix
  • Cloud
  • Experience
  • Microsoft
  • News
  • Office365
  • Raidho
  • VMware

Mettre en place une solution de travail à distance (RemoteOffice / Remoteworking) 2/2

  • Stephane Thirion
  • March 24, 2020
View Post
  • Amazon
  • Citrix
  • Cloud
  • Experience
  • Microsoft
  • News
  • Office365
  • Raidho
  • Security
  • VMware

Mettre en place une solution de travail à distance (RemoteOffice / Remoteworking) 1/2

  • Stephane Thirion
  • March 22, 2020
View Post
  • ArchY.net Site
  • Citrix
  • CTP
  • E2E - PubForum
  • Events
  • Microsoft
  • VMware

E2EVC Athens, Greece AD 2018

  • Stephane Thirion
  • November 5, 2018
View Post
  • Citrix
  • Microsoft
  • VMware
  • Windows 10
  • Windows 2008 R2
  • Windows 2012R2
  • Windows 2016
  • XenApp
  • XenDesktop

VMware VMtools installation with XenDesktop / XenApp 7.x VDAs

  • Stephane Thirion
  • November 29, 2016
View Post
  • Citrix
  • Microsoft
  • Provisioning Services
  • Scripting
  • VMware
  • vSphere
  • Windows 7
  • Windows 8
  • XenApp
  • XenDesktop

Expand virtual machines hard disk – automation

  • Stephane Thirion
  • March 30, 2016
View Post
  • Citrix
  • Microsoft
  • PowerShell
  • Scripting
  • VDI
  • VMware
  • vSphere
  • Windows 2008 R2
  • Windows 2012R2
  • Windows 7
  • XenApp
  • XenDesktop

XenDesktop XenApp 7.x – vmware / ad / delivery group notes and descriptions sync

  • Stephane Thirion
  • March 30, 2016
vmware
Binance – Affiliated link
Coinbase – Affiliated link
Blog Stats
  • 1,239,192 hits
Categories
  • Amazon (1)
  • Apple (20)
    • iOS (5)
    • Mac OSx (11)
  • ArchY.net Site (30)
  • Azure (8)
  • Certifications (3)
  • Citrix (211)
    • ADC (4)
    • Citrix Virtual Apps and Desktops (5)
    • DaaS (2)
    • NetScaler (15)
    • Password Manager (3)
    • Personal vDisk (5)
    • Power and Capacity Management (3)
    • Provisioning Services (22)
    • Receiver (29)
    • SDX (2)
    • ShareFile (8)
    • Single Sign On (3)
    • SmartAuditor (2)
    • Storefront (12)
    • Synergy (25)
    • User Profile Management (2)
    • VDI (7)
    • WebInterface (21)
    • XenApp (84)
    • XenApp Plugin (3)
    • XenClient (10)
    • XenDesktop (55)
    • XenServer (42)
  • Cloud (13)
  • Crystal Ball (2)
  • CTP (13)
  • Docker (2)
  • Events (35)
    • E2E – PubForum (9)
    • Geek Speak (3)
  • Experience (53)
  • Kubernetes (2)
  • Licensing (3)
  • Linux (12)
  • Microsoft (147)
    • Active Directory (1)
    • Azure (8)
    • Office365 (4)
    • PowerShell (19)
    • RDS (5)
    • Windows 10 (6)
    • Windows 2003 (21)
    • Windows 2008 (20)
    • Windows 2008 R2 (54)
    • Windows 2012 (13)
    • Windows 2012R2 (13)
    • Windows 2016 (18)
    • Windows 2019 (4)
    • Windows 2022 (1)
    • Windows 7 (27)
    • Windows 8 (19)
    • Windows Virtual Desktop (1)
    • Windows XP (11)
  • News (5)
  • Raidho (2)
  • Raspberry (3)
  • Scripting (13)
  • Security (5)
  • Slide Deck (1)
  • Thin Clients (3)
  • Twitter (1)
  • Ubiquiti (1)
  • Uncategorized (13)
  • VMware (28)
    • VMWare WorkStation (2)
    • vSphere (16)
Stéphane Thirion
Don't Follow the Trend

Input your search keywords and press Enter.

 

Loading Comments...