In June 2024, I undertook the task of upgrading one of our core Active Directory (AD) servers from Windows Server 2008 R2 to Windows Server 2012 R2 Standard. This was the second attempt after the initial upgrade failed. While our original plan was to migrate to Windows Server 2016, time constraints led us to stick with Server 2012 R2 for this upgrade cycle.
The existing environment consisted of:
ServerA: Running Windows 2008 R2 (primary AD server to be upgraded)
ServerB: Windows 2012 R2 (upgraded in a previous session)
ServerC: Windows 2012 R2 (upgraded in a previous session)
The servers were hosted on different Hyper-V hosts, with ServerA on Host1, ServerB on Host2 (part of a clustered Hyper-V setup), and ServerC on Host3 (a standalone Hyper-V server).
Here are the detailed steps I followed for the in-place upgrade:
- Rebooted ServerA, ServerB, and ServerC in sequence and took full system snapshots of each.
- On a ServerA, ran ‘netdom query fsmo’ to identify the FSMO role holders. Transferred all FSMO roles from ServerA to ServerB using ‘ntdsutil’ commands.
- Backed up certificates and removed the Certification Authority (CA) from ServerA, as this is a prerequisite for the OS upgrade path.
- Uninstalled the antivirus software (SEP) on ServerA and rebooted.
- Took another round of snapshots for all three servers.
- Initiated the in-place upgrade process on ServerA to install Windows Server 2012 R2 Standard. This failed after multiple attempts.
- Investigated the issue and found that migrating ServerA to a different Hyper-V host resolved the problem. The upgrade then completed successfully.
- Activated the KMS license and rebooted ServerA.
- Using ‘ntdsutil’ again, transferred the FSMO roles back to ServerA and thoroughly tested all three server roles.
- Installed the Active Directory Certificate Services (AD CS) role and loaded the required certificates.
- Rebooted ServerA, verified all services were running correctly, and took a final snapshot.
Installed the latest patch updates on ServerA, ServerB, and ServerC.
With this process, all three AD servers are now running Windows Server 2012 R2 Standard, having overcome the initial failed upgrade hurdles on the primary domain controller.
While this was a lengthy process, following the recommended steps and being persistent in troubleshooting the issues eventually led to a successful outcome. For anyone undertaking a similar in-place AD upgrade, be sure to have proper backups, transfer FSMO roles during the process, and be prepared to try different steps (like migrating to a new host) if the initial upgrade fails.