Skip to main content
Version: 2.2.1-preview

AD-COMP-06 - Computer default container count should be retrievable

Overviewโ€‹

Computers located in the default CN=Computers container represent a security and management concern:

  • No Group Policy inheritance: The Computers container is not an OU, so it doesn't support Group Policy inheritance
  • Management gaps: Computers in the default container may not receive security policies, software updates, or configurations
  • Provisioning issues: Indicates the domain join process hasn't been customized or automated provisioning is failing
  • Shadow IT: May represent unauthorized systems joined to the domain

Security Recommendationโ€‹

  • Move all computers from the default Computers container into appropriate OUs based on:
    • Geographic location
    • Department or function
    • Security requirements
  • Implement a standardized domain join process that places computers in the correct OU
  • Use redircmp.exe to redirect new computer accounts to a specific OU
  • Regularly audit the default container for new additions

How the Test Worksโ€‹

This test identifies enabled computer accounts where the Distinguished Name contains CN=Computers, indicating they are in the default Computers container rather than a proper organizational unit.

  • Test-MtAdComputerOUCount - Shows the distribution of computers across OUs
  • Test-MtAdComputerPerOUAverage - Analyzes OU structure effectiveness

Test Metadataโ€‹

FieldValue
Test IDAD-COMP-06
SeverityInfo
SuiteActive Directory
CategoryAD.Computer
PowerShell testTest-MtAdComputerInDefaultContainer
TagsAD, AD-COMP-06, AD.Computer

Sourceโ€‹

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