https://www.johndball.com/brain-dump-join-new-dc-to-existing-ad-infrastructure-via-powershell/
Brain dump: join new DC to existing AD infrastructure via PowerShell