I used this guide to migrate from DC 2008R2 to 2016. all was smooth, excepted for a couple of issues (the number points to the one used in the guide).
Add Windows server 2022 Domain Controller
5. Install-ADDSDomainController
I had to add this parameter:
-SafeModeAdministratorPassword $secureString
because I got a Read-Host error from my powershell 7.2. This could be due to the windows sevrer version (mine: 2016, this guide: 2022) but not sure.
To get it working I defined a variable like this (was lazy, didn't wanted to investigate the root reason....):
$secureString = ConvertTo-SecureString "Goofyrulez" -AsPlainText -Force
Decommission Old Domain Controller
5. In the Remove DNS Delegation page ...
Gave error: It was impossible to remove delegations on remote DNS server. RPC service (or server?) not available.
This second issue didn't had any consequences. Investigating a little bit, went to check the DNS server on the new DC to remove dns delegations manually using:
Get-DnsServerZoneDelegation -Name "forward or reverse zone"
to check if any delegations were present. I found none.
But, if were found I'd used this command:
Remove-DnsServerZoneDelegation
After reboots, the new DC was happily running.
Had to replace old DNS server IP from some static Ip configurations and that was all.
Great guide