Skip to main content
Version: 2.2.1-preview

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.

  • Test-MtAdSiteWithoutSubnetCount - Counts sites without subnets
  • Test-MtAdSubnetTotalCount - Counts total subnets
  • Test-MtAdSiteTotalCount - Counts total sites

Test Metadataโ€‹

FieldValue
Test IDAD-SUB-02
SeverityInfo
SuiteActive Directory
CategoryAD.Site
PowerShell testTest-MtAdSubnetSiteAssociationCount
TagsAD, AD-SUB-02, AD.Site

Sourceโ€‹

  • Pester test: tests/ad/site/Test-MtAdSubnetSiteAssociationCount.Tests.ps1
  • PowerShell source: powershell/public/ad/site/Test-MtAdSubnetSiteAssociationCount.ps1