AD-SUB-10 - Distinct first three octets (/24 networks) count should be retrievable
Overviewβ
Analyzing /24 network distribution provides:
- Subnet granularity: Understanding the typical subnet size in use
- Location mapping: Each /24 often represents a specific location or VLAN
- Capacity insight: How many discrete network segments exist
- Documentation: Detailed network topology information
/24 networks (254 hosts) are the most common subnet size for client networks.
Security Recommendationβ
- Document the purpose of each /24 network
- Align /24 boundaries with physical locations or security zones
- Plan /24 allocation to support VLAN and location requirements
- Review /24 utilization for optimization opportunities
How the Test Worksβ
This test extracts the first three octets from all IPv4 subnets and counts the distinct /24 networks.
Related Testsβ
Test-MtAdSubnetFirstOctetCount- Analyzes first octetsTest-MtAdSubnetFirstTwoOctetsCount- Analyzes /16 networksTest-MtAdSubnetTotalCount- Counts total subnets
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AD-SUB-10 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Site |
| PowerShell test | Test-MtAdSubnetFirstThreeOctetsCount |
| Tags | AD, AD-SUB-10, AD.Site |
Sourceβ
- Pester test:
tests/ad/site/Test-MtAdSubnetFirstThreeOctetsCount.Tests.ps1 - PowerShell source:
powershell/public/ad/site/Test-MtAdSubnetFirstThreeOctetsCount.ps1

