The forgotten password behind DC recovery access

The domain controllers are patched, privileged sign-ins are separated, and LAPS already manages local administrator passwords on clients. Yet a recovery exercise turns up an old installation note: the DSRM password from the original DC deployment. Nobody can reliably confirm whether it still works, was reused on other DCs, or remains known to former service providers.

The local Directory Services Restore Mode account is part of a domain controller's recovery path. It deserves the same care as other Tier-0 access. This article extends a general LAPS deployment with a specific process for these passwords. Actual AD restoration remains a separate procedure that must be rehearsed.

Give each DC a managed password and an accessible recovery path

The target has two demonstrable outcomes: each included DC receives an individually managed DSRM password, and the responsible recovery role can obtain the correct secret in the intended outage scenario. A successfully applied policy alone satisfies neither requirement.

Record the operational owner, last successful rotation, relevant recovery backup, and emergency console access for each DC. Acceptance therefore involves AD operations, backup owners, and the people who actually perform an overnight recovery. Password values do not belong in this inventory.

Check prerequisites before the first rotation

Windows LAPS can back up DSRM passwords only to AD DS with encryption; Microsoft Entra ID is not a destination for this purpose. The requirements include Windows Server 2016 domain functional level or later and a supported DC running Windows Server 2019 or later with Windows LAPS. A Server 2016 DC does not gain this capability merely because the domain has the required functional level.

Check the Windows LAPS schema, current updates, available LAPS administration tools, and AD replication. If required, extending the schema with Update-LapsADSchema is a separate forest-wide change requiring appropriate permissions and replication checks. An existing schema extension does not need repeating for each DC.

The pilot described here starts on a writable DC. Inventory RODCs separately and give their site connectivity, permissions, and recovery procedures a separate acceptance test. A successful test on a writable DC does not demonstrate a working process in an isolated branch office. Do not move DC computer objects into an ordinary client OU for the pilot.

Configure a dedicated DC policy

Create a separate GPO whose initial scope is limited to the pilot DC. Back up the starting configuration and check link order, security filtering, and the actual resultant computer policy. If a Central Store is used, it must contain the appropriate LAPS ADMX and language files; Windows Update does not update that store automatically.

The settings are under Computer Configuration > Policies > Administrative Templates > System > LAPS:

  • BackupDirectory: 2, back up to Active Directory.
  • ADPasswordEncryptionEnabled: 1, enable encryption.
  • ADBackupDSRMPassword: 1, enable DSRM backup.
  • Explicitly define length, complexity, and age in the password settings.

A project might start with 24 characters, complexity 4, and 30 days. This is not a universal baseline: specifically test entry through the actual emergency console and align the rotation interval with the recovery procedure. Include newer passphrase options only after checking every operating system version in scope.

For DSRM, the Domain Admins group of the respective domain is the fixed authorized decryptor. ADPasswordEncryptionPrincipal cannot replace it with a help desk group. A client LAPS role model therefore cannot be transferred unchanged to DCs.

Reconcile permissions and existing password processes

Review effective permissions for backup, retrieval, and expiration changes on the DC computer object and its parent container. Use the designated LAPS delegation tools only for the specific area that has been reviewed; do not copy client OU permissions wholesale to the Domain Controllers OU.

Set-LapsADComputerSelfPermission provides the permissions used for self-management. First establish which permissions already exist and whether the intended inheritance actually applies. Reading attributes and decrypting them are separate capabilities. Broad read or modification permissions remain a finding despite encryption.

Identify old password scripts, manual synchronization procedures, and other password managers before the handover. Only one responsible management process should remain for the account. Retiring an old job requires a documented handover, not silent parallel operation.

Complete acceptance on one DC

Before activation, establish a maintenance window, contacts, and stop criteria. Keep the existing recovery path available until the handover is confirmed. After applying the GPO, first verify its effect on the pilot DC. Within the approved change, Invoke-LapsPolicyProcessing can trigger processing locally; this call can change a password and is not a read-only check.

Inspect the configured policy and the complete processing cycle in Microsoft-Windows-LAPS/Operational. Event 10021 describes the AD policy, 10018 confirms backup to AD, 10020 confirms the local password update, and 10004 records a successful cycle; 10005 requires investigation. A successful cycle with no password change due does not prove a new rotation.

Then verify retrieval and the update timestamp through a second writable DC in the same domain. This shows whether the stored result is available beyond the pilot DC itself. If timestamps disagree, first investigate replication and the query target; repeated password changes add uncertainty instead of resolving it.

Verify retrieval without logging passwords

Run the following example on a trusted Tier-0 administration workstation with the LAPS module installed. Replace both example names with approved systems. It changes no AD object, but it does perform a privileged retrieval attempt and attempts to decrypt the DSRM password.

Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
Import-Module LAPS

Get-LapsADPassword -Identity 'DC-PILOT-01' `
    -DomainController 'dc02.example.com' -ErrorAction Stop |
    Select-Object ComputerName, Source, DecryptionStatus,
        AuthorizedDecryptor, PasswordUpdateTime, ExpirationTimestamp

Expect Source: EncryptedDSRMPassword, successful decryption, and a plausible update timestamp. Without -AsPlainText, the password is returned as a SecureString; the selected output shows only metadata. The complete result must still never enter tickets, transcripts, or diagnostic exports.

Also perform a negative test with an unauthorized test account. It must not receive a usable password. A connection failure does not prove access denial. Test actual DSRM sign-in separately on a controlled, isolated recovery instance without recording secrets.

Prepare recovery without a running AD

Normal retrieval depends on available AD. During a complete domain outage, an instruction to “get the password from LAPS” is therefore insufficient. The recovery plan needs accessible backups, a suitable recovery machine, available tools, and tested access to the password corresponding to the backup being restored.

A mounted AD backup can serve as a retrieval source. Explicitly verify whether the deployed combination of operating system and LAPS module can decrypt from it without an available DC. The enhanced capabilities using -Port and -RecoveryMode depend on the version. The presence of a parameter or a successful online test does not demonstrate this offline capability.

Where necessary, add a separately protected recovery vault with access that does not depend exclusively on the failed AD. Handover, updates after rotation, dual approval, and regular exercises must work together. A one-time password export becomes unreliable with the next rotation.

Password history can assist with older recovery states. Deliberately define which backup must remain recoverable with which password version; history replaces neither system-state backups nor recovery testing. After DSRM use, schedule a controlled rotation once normal operation is restored: automatic rotation following authentication is unsupported for DSRM, and Windows LAPS does not operate in DSRM mode.

Benefits for operations and verification

  • Individual, regularly renewed passwords reduce dependence on old installation secrets.
  • Rotation and backup can be checked per DC using timestamps and events.
  • A shared acceptance procedure connects password management with actual recoverability.
  • Responsibilities and failure handling are clarified before an emergency.

Drawbacks and limitations

  • DSRM secrets remain Tier 0; the fixed decryption role does not provide freely configurable help desk delegation.
  • A complete AD outage requires an additional, rehearsed retrieval path.
  • Rotation requires coordination with backup states, vaults, and recovery exercises.
  • LAPS does not prevent compromise by an adversary who already controls domain administration, and it does not replace protection of DC consoles or backup infrastructure.

Common pitfalls and a controlled rollback

Common failures include an overlooked older DC, a GPO reaching beyond the pilot, an outdated recovery vault, and assuming that password retrieval automatically triggers rotation. A sign-in test on a production DC without a complete maintenance plan is equally problematic.

If errors occur, stop expanding the rollout first. Rolling back a GPO does not restore an earlier password. Before ending LAPS management, securely preserve the currently valid recovery access and establish a responsible replacement process. Do not delete password attributes or schema elements as supposed cleanup. Record the last confirmed state and test the rollback on the pilot before proceeding to more DCs.

Project acceptance checklist

  • [ ] DC versions, domain functional level, schema, and replication checked.
  • [ ] Writable DCs and RODC scenarios planned separately.
  • [ ] Pilot GPO, filtering, and effective DSRM settings documented.
  • [ ] Permissions and competing password processes reconciled.
  • [ ] Rotation, encrypted backup, and retrieval through a second DC confirmed.
  • [ ] Authorized and unauthorized retrieval tested without recording secrets.
  • [ ] DSRM sign-in and complete AD outage covered by recovery testing.
  • [ ] Password versions, backup states, and any recovery vault aligned.
  • [ ] Rotation after use, monitoring, rollback, and operational ownership established.