AD-SITE-01 - Site total count should be retrievable
Overviewβ
Active Directory sites represent the physical topology of your network and are fundamental to:
- Authentication efficiency: Clients authenticate to domain controllers in their local site
- Replication optimization: Directory data replicates between sites on a controlled schedule
- Service location: Clients locate services (like DFS, Exchange) in their local site
- Bandwidth conservation: Site-aware applications minimize WAN traffic
Understanding the number and distribution of sites helps assess whether your Active Directory topology accurately reflects your physical network infrastructure.
Security Recommendationβ
Ensure that:
- Sites exist for all physical locations with domain resources
- Site topology is reviewed periodically as the network evolves
- Sites are properly named to reflect their geographic location
- Unused sites are removed to prevent confusion
How the Test Worksβ
This test retrieves all Active Directory sites using Get-ADReplicationSite and counts the total number of sites configured in the domain.
Related Testsβ
Test-MtAdSiteWithoutDcCount- Identifies sites without domain controllersTest-MtAdSiteWithoutSubnetCount- Identifies sites without subnet associationsTest-MtAdDcSiteCoverageCount- Analyzes DC distribution across sites
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AD-SITE-01 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Site |
| PowerShell test | Test-MtAdSiteTotalCount |
| Tags | AD, AD-SITE-01, AD.Site |
Sourceβ
- Pester test:
tests/ad/site/Test-MtAdSiteTotalCount.Tests.ps1 - PowerShell source:
powershell/public/ad/site/Test-MtAdSiteTotalCount.ps1

