Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Tombstone lifetime should be retrievable

AD-FOR-03InfoActive DirectoryDirectory configuration

Part of Active Directory · Active Directory · Directory configuration · All checks

Run this check
Invoke-Maester -TestId AD-FOR-03

The tombstone lifetime determines how long deleted Active Directory objects are retained in the database before being permanently removed:

  • Accidental Deletion Recovery: Longer lifetimes provide more time to recover accidentally deleted objects
  • Replication Stability: Ensures deleted objects replicate to all DCs before being purged
  • Backup Recovery: Aligns with backup retention strategies for directory recovery
  • Compliance: Some regulations require specific retention periods for directory data

Default Values:

  • 180 days: Default for forests created on Windows Server 2003 SP1 and later
  • 60 days: Default for older forests (Windows 2000/2003 RTM)

Preventive

  • Minimum 180 Days: Maintain at least 180 days for adequate recovery time
  • Align with Backups: Ensure tombstone lifetime matches or exceeds backup retention
  • Monitor Changes: Track any modifications to this critical setting
  • Document: Record the current setting and any business requirements

To modify the tombstone lifetime:

$configurationNC = (Get-ADRootDSE).configurationNamingContext
Set-ADObject -Identity "CN=Directory Service,CN=Windows NT,CN=Services,$configurationNC" -Replace @{tombstoneLifetime=180}

This test retrieves the tombstone lifetime from the Directory Service configuration object and reports the current value along with recommendations.

  • Test-MtAdRecycleBinStatus - Checks if the AD Recycle Bin is enabled
  • Test-MtAdForestFunctionalLevel - Retrieves the forest functional level (required for Recycle Bin)
Every attribute of this check
FieldValue
Test IDAD-FOR-03
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureDirectory configuration
AreaInfrastructure hardening
Resource typeTenant
MITRE ATT&CKNone
PowerShell testTest-MtAdTombstoneLifetime
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:Configuration/*:ReadProperty, ActiveDirectory:Ldap:crossRef:ReadProperty