Skip to content

Cloning a Domain Controller Server 2012: Hyper-V

Technical Article

Steps to clone a Domain Controller.

Categories
Hyper VMicrosoftWindows Server 2012
Tags
Active DirectoryConfiguration FileDomain ControllerDomain Name SystemMicrosoft WindowsProtocolsVirtual MachineVm
Cloning a Domain Controller Server 2012: Hyper-V

Ensure the domain controller is placed in the Clonable Domain Controllers Security Group

Creating the Allowable Applications List:

get-addccloningExcludedApplicationList

Generate a exception xml:

Get-ADDCCloningExcludedApplicationList -GenerateXml

Creating the Clone Configuration File:

New-ADDCCloneConfigFile -Static -IPv4Address <newipaddress> -IPv4DefaultGateway <ip address> -IPv4SubnetMask <Subnetmask> -IPv4DNSResolver <DNS IP> <Second DNS IP> - CloneComputer Name <domain controller name> -SiteName <site Name>

You can view the DC Clone config file under the following directory:

notepad c:\\Windows\\NTDS\\DCCloneConfig.xml

Cloning the DC:

Export the VM to a folder

Import the Vm, Copy the virtual machine (create a new unique ID) rename the interface item from old dc to new dc name.

Power off the source DC

Once you power on the new DC it will start to clone

After the clone has completed, power on both DC's. The Customisation will happen automatically