You need to install a domain controller in the branch office by using an offline copy of the Active Directory database
You need to ensure that the new server is already joined to the domain when it first connects to the internal network