https://rakhesh.com/windows/demoting-a-2012r2-domain-controller-using-powershell/
Demoting a 2012R2 Domain Controller using PowerShell