promoting a new windows domain controller
From thelinuxwiki
Demote or Decommission A Domain Controller
How to Transfer FSMO Roles in Server 2019 Using Powershell
How to Query FSMO Roles(powershell)
> netdom /query fsmo
Move-ADDirectoryServerOperationMasterRole -Identity “Target_DC_Name” –OperationMasterRole 0,1,2,3,4 -Confirm:$false -Force
https://ond360.com/windows-server/adding-a-2019-domain-controller-to-a-2008-forest/