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