Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Forest domain count should be retrievable

AD-FOR-02InfoActive DirectoryDomain and forest

Part of Active Directory · Active Directory · Domain and forest · All checks

Run this check
Invoke-Maester -TestId AD-FOR-02

Understanding the number and names of domains in your forest is critical for:

  • Security Boundaries: Each domain represents a security boundary with its own policies
  • Trust Management: Understanding trust relationships between domains
  • Administrative Scope: Knowing where administrative permissions apply
  • Compliance Scope: Determining the scope of compliance assessments
  • Disaster Recovery: Planning recovery procedures across all domains

Operational

  • Minimize Domains: Fewer domains reduce complexity and attack surface
  • Document Structure: Maintain documentation of all domains and their purposes
  • Review Regularly: Periodically review if all domains are still needed
  • Consistent Policies: Apply consistent security policies across all domains

This test retrieves all domains from the Active Directory forest and counts them. It also lists all domain names for reference.

  • Test-MtAdForestFunctionalLevel - Retrieves the forest functional level
  • Test-MtAdDomainControllerCount - Counts domain controllers in the current domain
Every attribute of this check
FieldValue
Test IDAD-FOR-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureDomain and forest
AreaInfrastructure hardening
Resource typeTenant
MITRE ATT&CKNone
PowerShell testTest-MtAdForestDomainCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:crossRef:ReadProperty