AD-DCD-03 - Read-only domain controller count should be retrievable
Overviewβ
Read-Only Domain Controllers (RODCs) are a critical security feature introduced in Windows Server 2008 designed specifically for deployment in locations where physical security cannot be guaranteed, such as branch offices. RODCs provide several security benefits:
- Reduced attack surface: RODCs maintain a read-only copy of the Active Directory database, preventing directory modifications from compromised locations
- Credential caching control: Administrators can configure which credentials (if any) are cached on the RODC, limiting exposure if the server is compromised
- Read-only DNS: RODCs can host read-only DNS zones, reducing DNS poisoning risks
- Filtered attribute set: Sensitive attributes can be prevented from replicating to RODCs
Understanding your RODC deployment helps ensure:
- Appropriate placement in less secure locations
- Proper credential caching policies
- Compliance with security standards for branch office infrastructure
Security Recommendationβ
- Deploy RODCs in branch offices: Use RODCs instead of writable DCs in locations with limited physical security
- Configure credential caching: Limit cached credentials to only those needed for local operations
- Monitor RODC replication: Regularly audit what data is being replicated to RODCs
- Plan for RODC compromise: Have procedures in place for quickly resetting passwords if an RODC is compromised
- Review RODC placement: Ensure all RODCs are justified and necessary
How the Test Worksβ
This test retrieves all domain controllers and identifies which are configured as Read-Only Domain Controllers. The test reports:
- Total number of domain controllers
- Number of writable domain controllers
- Number of read-only domain controllers (RODCs)
- Names and sites of RODCs (if any exist)
Related Testsβ
Test-MtAdDcNonGlobalCatalogCount- Checks Global Catalog configurationTest-MtAdDcSiteCoverageCount- Analyzes DC distribution across sitesTest-MtAdSiteWithoutDcCount- Identifies sites without DC coverage
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AD-DCD-03 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.DomainController |
| PowerShell test | Test-MtAdDcReadOnlyCount |
| Tags | AD, AD-DCD-03, AD.DomainController |
Sourceβ
- Pester test:
tests/ad/domaincontroller/Test-MtAdDcReadOnlyCount.Tests.ps1 - PowerShell source:
powershell/public/ad/domaincontroller/Test-MtAdDcReadOnlyCount.ps1

