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) →

RIDs remaining should be retrievable

AD-DOM-04InfoActive DirectoryDomain and forest

Part of Active Directory · Active Directory · Domain and forest · All checks

Run this check
Invoke-Maester -TestId AD-DOM-04

RIDs (Relative Identifiers) are essential for creating unique Security Identifiers (SIDs) for every user, group, and computer in Active Directory. Each domain has a finite pool of approximately 1 billion RIDs:

  • SID Exhaustion: Running out of RIDs would prevent creation of any new security principals
  • Business Impact: New users, groups, or computers could not be created
  • Recovery Complexity: RID pool exhaustion requires complex forest recovery procedures

Operational

Monitor RID consumption regularly:

  • Normal Usage: Most domains use only a small fraction of available RIDs over their lifetime
  • High Consumption: Rapid RID consumption may indicate:
  • Excessive computer account creation/deletion cycles
  • Automated provisioning scripts creating many accounts
  • Security issues like computer account flooding attacks
  • Threshold Alerting: Set alerts when RID usage exceeds 50% (very conservative) or 75%

If RID consumption is unexpectedly high:

  1. Investigate the source of high account creation
  2. Review computer join policies and scripts
  3. Consider implementing stricter controls on account creation

This test retrieves the RID available pool from Active Directory and calculates the remaining RIDs. The RID pool is a 64-bit value where the high 32 bits represent the total pool and the low 32 bits represent used RIDs.

  • Test-MtAdDomainControllerCount - Counts domain controllers (RID masters)
  • Test-MtAdMachineAccountQuota - Checks machine account creation limits
Every attribute of this check
FieldValue
Test IDAD-DOM-04
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureDomain and forest
AreaInfrastructure hardening
Resource typeTenant
MITRE ATT&CKNone
PowerShell testTest-MtAdRidsRemaining
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:domainDNS.rIDAvailablePool:ReadProperty