Upgrading from Windows Server 2008 R2 to Windows Server 2012

If upgrading a domain controller ensure the following commands are run first.

D:\support\adprep\adprep /forestprep
 D:\support\adprep\adprep /domainprep