Join our Newsletter — 33% off our NHI Course
Home› Guides› Virtualised Domain Controllers: Hypervisor as Tier 0, Snapshots…
Guide Privileged Access (PAM)

Virtualised Domain Controllers: Hypervisor as Tier 0, Snapshots and VM-GenerationID

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

A virtual domain controller is only as secure as the hypervisor, storage and backup systems underneath it, because anyone who controls those layers can copy, roll back or replace the DC without ever logging on to Windows. Most Active Directory estates now run some or all of their DCs as virtual machines, and the people who administer the virtualisation fabric are often a separate team with no Tier 0 controls. This guide covers why the hypervisor belongs in Tier 0, how VM-GenerationID protects a DC from snapshot rollback and where it does not, safe cloning, supported backup and restore, and the fabric hardening that keeps virtual DCs trustworthy. It is for AD engineers, virtualisation administrators and identity security leads. Server-level DC settings are in the AD Domain Controller Hardening Guide; this page goes deeper on the virtualisation layer.

This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.

Key takeaways

  • Whoever controls the host controls the domain. Microsoft says the local admin credentials of a host running writable DCs should be treated as equal to the domain admin of every domain those DCs belong to.
  • VM-GenerationID is a safety net, not a backup. Since Windows Server 2012 a DC that detects a changed generation ID resets its InvocationID and discards its RID pool, which prevents USN reuse, but unreplicated changes made after the snapshot are still lost.
  • Copied disks bypass the safeguards. Manually copied or file-restored VHD and VHDX files do not change the generation ID and can still cause USN rollback, quarantine or lingering objects.
  • Clone only through the supported process. Cloning needs a reachable PDC emulator, a hypervisor that exposes VM-GenerationID, membership of Cloneable Domain Controllers and a DCCloneConfig.xml file; that group should be empty outside a planned change.
  • Back up from inside the guest. Microsoft recommends Windows Server Backup or another VSS-based system state backup in the guest OS, with snapshots kept out of the recovery plan.

Why the hypervisor is Tier 0

Microsoft's enterprise access model describes Tier 0 as the control plane: the systems that control access across the enterprise, built on the central identity system, with a hierarchy that stops lower planes controlling higher ones. A virtual DC adds a layer below Windows. The VM's disk file holds ntds.dit and the krbtgt key, its console gives keyboard access below any Windows logon control, and its configuration decides which network it joins. Microsoft's Hyper-V DC guidance states that VHD files for a virtual DC are like the physical hard drive of a physical DC and should be accessible only to trusted administrators, and that the host must be managed as carefully as a writable DC even if it is a workgroup machine.

Every person, account and tool that can act on a virtual DC through the fabric inherits Tier 0.

Fabric componentWhat control of it allowsTierControl
Hypervisor hosts running DCsConsole access, VM pause, disk copy, memory capture, snapshot revertTier 0Dedicated hosts or cluster for DCs; admin from privileged access workstations only
Virtualisation management server and its admin rolesAny action on any VM it manages, including DCsTier 0 for the DC scopeSeparate management instance for DC hosts, or role scoping so only Tier 0 admins reach DC VMs
Storage arrays and datastores holding DC disksOffline copy of the DC disk and therefore ntds.dit (ATT&CK T1003.003)Tier 0Separate LUNs or datastores; BitLocker inside the guest; restricted storage admin roles
Backup platform that protects DCsRestore or mount a DC image, read system stateTier 0Isolated backup infrastructure for Tier 0, separate credentials, immutable copies
Replication and disaster recovery toolingBring up a copy of the DC elsewhereTier 0Restrict who can fail over DC VMs; treat replicas like backups
Host patching, monitoring and configuration toolsRun code as SYSTEM or root on the hostTier 0 for DC hostsSeparate update channel and console for DC hosts
Network fabric (virtual switches, VLANs)Move a DC to another network segment or intercept its trafficTier 0 for DC port groupsLimit who can change DC network configuration and alert on changes

Two Microsoft recommendations shape the design. First, run DCs on physical hosts separate from other VMs, and separate their storage so storage administrators cannot reach the VM files. Second, where DCs must share hosts with less sensitive VMs, use a role-separation technology such as Hyper-V shielded VMs, which Microsoft describes as protection against virtualisation, network, storage and backup administrators using a hardware root of trust with remote attestation.

Host domain membership: an administrator of a virtual DC gains administrative rights on the host if the host joins the same domain, which creates a loop. Microsoft's recommended approach is to make the DC hosts members of a highly privileged administration domain, or to manage them as workgroup or separately administered hosts. See the Tiered Administration and Enterprise Access Model Guide and the Hypervisor and Virtualisation Security Guide.

Snapshots and VM-GenerationID

Active Directory replication relies on update sequence numbers (USNs). The InvocationID of the database plus the USN identifies each change and must be unique in the forest. If a DC is rolled back to an earlier disk state and reuses USNs it has already issued, its partners believe they already hold those changes and ignore them. Microsoft calls this USN rollback and notes that it can fail silently, with no replication errors on the destination DCs, while accounts, password changes, group memberships and DNS registrations go missing.

How the safeguard works

VM-GenerationID is a hypervisor-vendor-independent identifier the hypervisor exposes inside the guest. At DC promotion, AD DS stores it in the msDS-GenerationID attribute of the DC's computer object. From Windows Server 2012 onwards:

  • On restore from snapshot: before committing a transaction, AD DS compares the current generation ID with the stored value. If they differ, it resets the InvocationID and discards the RID pool, so new changes cannot collide with old USNs.
  • On every boot: the same comparison runs. If the values differ, AD DS also updates the stored value and performs a non-authoritative synchronisation of SYSVOL, which covers snapshots applied while the VM was off.
  • Requirement: the hypervisor must expose VM-GenerationID. On Hyper-V, Microsoft says to look for the Microsoft Hyper-V Generation Counter (vmgencounter.sys) under System Devices in Device Manager. Other hypervisors document their own support: check the vendor's documentation for your version.

What it does not do

ScenarioProtected by VM-GenerationID?Outcome and action
Hypervisor snapshot or checkpoint reverted on a supported hypervisorYes, from Windows Server 2012Rollback is handled safely, but changes not replicated out before the revert are permanently lost
VHD or VHDX copied by hand or restored at file level from storageNoGeneration ID unchanged; risk of USN rollback, quarantine or lingering objects
Hypervisor without VM-GenerationID supportNoTreat any snapshot revert as an unsupported restore
All DCs in a domain restored at oncePartlyMicrosoft warns SYSVOL replication halts; restore one DC and let the rest replicate
Pre-clone snapshot restored on a cloneNoDuplicate DCs in the forest; delete snapshots before cloning and after import

Microsoft's operational guidance is direct: do not take or use snapshots of virtual DCs as a backup method, because they do not provide a stable, permanent restore history. Before any deliberate snapshot revert (for example in a lab or during a failed upgrade), Microsoft advises using repadmin /showrepl and repadmin /showchanges to confirm no outbound changes are pending to writable partners.

Detecting a rollback: event 2095 in the Directory Service log is raised when a partner sends a USN it already acknowledged without an InvocationID change, and Net Logon is paused on the rolled-back DC. The registry value Dsa Not Writable = 0x4 under HKLM\System\CurrentControlSet\Services\NTDS\Parameters is a forensic indicator; Microsoft warns that deleting or changing it leaves the DC permanently unsupported. Recovery is to demote and clean up the DC or restore a valid system state backup.

Cloning

Supported cloning creates a new DC from a copy of an existing one without a full promotion. It is a privileged operation: whoever can clone a DC gets a new DC holding every secret in the domain.

Prerequisites from Microsoft's deployment guidance

  • PDC emulator: on Windows Server 2012 or later, online and reachable from the clone when cloning begins.
  • Hypervisor: must support VM-GenerationID.
  • Authorisation: the source DC must be in the Cloneable Domain Controllers group, which has no members by default and grants the "Allow a DC to create a clone of itself" right on the domain head.
  • Application check: anything returned by Get-ADDCCloningExcludedApplicationList must be removed or added to CustomDCCloneAllowList.xml. Standalone managed service accounts block cloning; group managed service accounts are supported.
  • Configuration file: New-ADDCCloneConfigFile creates DCCloneConfig.xml. Run online, it tests the PDC emulator version, group membership, excluded applications and any existing file.

Safe cloning procedure

  1. Raise a change, add the source DC to Cloneable Domain Controllers and record the time.
  2. Run the excluded application check and resolve every item.
  3. Create DCCloneConfig.xml with the new name, site and IP settings.
  4. Shut the source DC down gracefully. Do not clone a DC that stopped through power loss.
  5. Delete snapshots on the source, then copy the disk or export the VM. On import, choose Copy so the VM gets a new unique ID, and give it a new MAC address if the source used a static one.
  6. Start the clone. It completes cloning and reboots, or starts in Directory Services Restore Mode if something fails.
  7. Delete any imported snapshots on the clone, which Microsoft calls critically important to avoid replication failure and duplicate IP information.
  8. Remove the source DC from Cloneable Domain Controllers and close the change.

Governance: alert on any membership change to Cloneable Domain Controllers (security group change events 4728, 4732 or 4756 depending on group scope, and directory change event 5136) and on new DC computer objects. An unexpected DC is the same signal as a rogue DC: see the MITRE ATT&CK T1207 Rogue Domain Controller guide.

Backup

Microsoft's recommended method for virtual DCs is Windows Server Backup, or another VSS-writer-based product, running in the guest OS, with restore from a system state backup of the current installation. It also states that restoring a DC or its database by an unsupported method is not supported.

MethodSupported for AD recoverySecurity consideration
System state backup inside the guest (Windows Server Backup or VSS-aware product)Yes, Microsoft's recommended methodBackup files contain ntds.dit and the SYSTEM hive: encrypt, isolate and restrict to Tier 0
Hypervisor snapshot or checkpointNot as a backupSnapshot files sit on the datastore and expose the disk to anyone with storage access
Copy of the VHD or VHDX fileNoBypasses VM-GenerationID and is a full offline copy of the directory
Hypervisor replica of the DC VMOnly with the same cleanup as an exported imageReplica sites become Tier 0 and need the same access controls

Microsoft also notes that VSS-based snapshots created by Hyper-V in Windows Server 2016 and later are not compatible with BitLocker in the guest, which can create security issues, so check how your backup product interacts with guest disk encryption before relying on it. Keep at least one backup copy that the virtualisation and general backup administrators cannot delete. The DC backups are also the starting point for forest recovery. See the Backup Security and Immutable Backup Guide, the Secrets in Backups and Snapshots guide and the Active Directory Forest Recovery Runbook Template.

Hardening

Placement and resilience

  • Spread DCs: Microsoft recommends at least two virtual DCs per domain on different hosts, adding physical DCs to every domain, and avoiding running every DC in a forest or domain on one host.
  • Physical to virtual: convert offline, keep the VM off the network during conversion, never run the physical and virtual copies at the same time, and do not reconnect the physical source until its disk is wiped.

VM configuration

  • Time: Microsoft recommends disabling host time synchronisation for a guest DC so it follows the domain time hierarchy instead. On Hyper-V, clear Time synchronization under Integration Services with the VM off.
  • Disk integrity: on Hyper-V hosts running DCs, Microsoft recommends SCSI disks, or disabling write caching on ATA or IDE disks, so directory writes are not lost on host failure.
  • Disk encryption: BitLocker inside the guest protects ntds.dit if a disk file or snapshot is copied. Shielded VMs add encryption and attestation against fabric administrators on Hyper-V.
  • Export: do not export a running DC.

Fabric access

  • Admin accounts: separate Tier 0 accounts for DC host and DC VM administration, used only from privileged access workstations. See the Privileged Access Workstations Guide.
  • Service accounts: backup, monitoring and orchestration service accounts that reach DC hosts or DC VMs are Tier 0 non-human identities. Inventory them, vault their credentials and scope them to the DC hosts only.
  • Platform hardening: apply the vendor's hardening guidance to the hosts that run DCs. Listed alphabetically: see the Hyper-V Security Guide and the VMware ESXi Hardening Guide.

Monitoring and metrics

Forward hypervisor and management server logs for DC hosts to the SIEM and alert on console sessions, snapshot creation or revert, disk export or copy, VM migration to non-DC hosts and role assignment changes that touch DC VMs. In the guest, watch event 2095, Cloneable Domain Controllers membership and new DC objects. Useful measures:

  • Fabric Tier 0 population: number of people and service accounts with any rights on DC hosts, storage or backups, trending down.
  • Snapshot hygiene: count of snapshots present on DC VMs, target zero outside a change window.
  • Host isolation: share of DCs on dedicated hosts or shielded VMs.
  • Backup readiness: age of the newest system state backup per domain and date of the last tested restore.
  • Cloning control: days per year the Cloneable Domain Controllers group is non-empty.

Common failure patterns

  • Virtualisation admins outside the tiering model: the team with full rights on the cluster that runs the DCs uses daily accounts from ordinary laptops, so the domain can be taken from the fabric.
  • Snapshots as a recovery plan: a DC is reverted after a failed update, the revert discards unreplicated changes, and on older or unsupported hypervisors causes silent USN rollback.
  • Template DCs and disk copies: new DCs are built from a copied VHDX of an existing DC rather than through promotion or supported cloning.
  • Backups on the shared platform: DC backups sit in the same backup system as every other server, administered by the same people, so the backup console is a path to ntds.dit.
  • All DCs on one cluster: a single storage or cluster failure, or a single compromised management server, removes or exposes every DC at once.

Framework mapping

FrameworkReferenceApplies to
NIST SP 800-53 Rev. 5AC-6 Least Privilege, AC-6(5) Privileged Accounts, CM-7 Least Functionality, CP-9 System Backup, CP-10 System Recovery and ReconstitutionFabric Tier 0 rights, minimal DC hosts, guest backups and recovery
NIST CSF 2.0PR.AA-05, PR.PS-01, PR.DS-11, RC.RP-03Least privilege and separation of duties, configuration management, protected backups, backup integrity before restore
MITRE ATT&CK v20T1003.003 NTDS, T1003.006 DCSyncOffline copy of ntds.dit from disks or backups; rogue clones replicating secrets

Practitioner checklist

  • List every host, management server, datastore, backup system and replica site that touches a DC VM and classify it as Tier 0.
  • Run DCs on dedicated hosts or shielded VMs, with storage separated from general storage administrators.
  • Move DC host administration to Tier 0 accounts on privileged access workstations, and keep DC hosts out of the domains they serve.
  • Confirm the hypervisor exposes VM-GenerationID to each DC and record the evidence.
  • Remove existing snapshots on DC VMs and alert on new ones.
  • Back up system state from inside each guest, encrypt and isolate the copies, and test a restore at least yearly.
  • Keep Cloneable Domain Controllers empty, and use only the supported cloning procedure with a change record.
  • Disable host time synchronisation for DC guests and check the PDC emulator's time source.
  • Place at least two DCs per domain on separate hosts, with physical DCs where possible.

Standards and references

Related NHI Mgmt Group resources: AD Domain Controller Hardening Guide · Tiered Administration and Enterprise Access Model Guide · Hypervisor and Virtualisation Security Guide · Identity Recovery Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.