AD-SUB-02 - Sites with subnet associations count should be retrievable
Overviewโ
Sites with subnet associations are essential for:
- Proper client site assignment: Clients can determine their site based on IP address
- Efficient authentication: Clients authenticate to the nearest DC
- Optimized replication: Site topology guides inter-site replication
- Service localization: Clients find services in their local site
Sites without subnets cannot participate in site-aware operations.
Security Recommendationโ
- Ensure all production sites have appropriate subnets assigned
- Review site-subnet associations during network changes
- Document the rationale for any sites intentionally without subnets
- Validate that subnet boundaries match physical network segments
How the Test Worksโ
This test analyzes subnet-to-site associations to count how many sites have at least one subnet assigned.
Related Testsโ
Test-MtAdSiteWithoutSubnetCount- Counts sites without subnetsTest-MtAdSubnetTotalCount- Counts total subnetsTest-MtAdSiteTotalCount- Counts total sites
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-SUB-02 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Site |
| PowerShell test | Test-MtAdSubnetSiteAssociationCount |
| Tags | AD, AD-SUB-02, AD.Site |
Sourceโ
- Pester test:
tests/ad/site/Test-MtAdSubnetSiteAssociationCount.Tests.ps1 - PowerShell source:
powershell/public/ad/site/Test-MtAdSubnetSiteAssociationCount.ps1

