Skip to main content
Version: 2.2.1-preview

AD-SUB-11 - Subnets without site associations count should be retrievable

Overviewโ€‹

Subnets without site associations (orphaned subnets) can cause:

  • Client mislocation: Computers with these IPs cannot determine their site
  • Authentication inefficiency: Clients may authenticate to distant DCs
  • Configuration drift: Orphaned subnets may indicate incomplete cleanup
  • Operational confusion: Unclear which locations these subnets serve

Orphaned subnets should be either assigned to sites or removed.

Security Recommendationโ€‹

  • Assign orphaned subnets to appropriate sites
  • Remove subnets that are no longer in use
  • Review subnet assignments during network changes
  • Document the purpose and location of all subnets

How the Test Worksโ€‹

This test identifies subnets that have no site association (SiteObject is null).

  • Test-MtAdSiteWithoutSubnetCount - Identifies sites without subnets
  • Test-MtAdSubnetSiteAssociationCount - Counts sites with subnets
  • Test-MtAdSubnetTotalCount - Counts total subnets

Test Metadataโ€‹

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

Sourceโ€‹

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