Skip to main content
Version: 2.2.1-preview

AD-DCOMP-04 - Computer operating system count should be retrievable

Overviewโ€‹

  • Understanding the distribution of operating systems in your Active Directory environment is crucial for security management. High OS diversity can indicate:

Security Implications:

  • Legacy Systems: Older operating systems may no longer receive security updates
  • Inconsistent Patching: Different OS versions may have varying patch levels
  • Unsupported Platforms: End-of-life operating systems pose significant security risks
  • Compliance Issues: Regulatory requirements may mandate specific OS versions

Common Scenarios:

  • Windows Server 2008/2012 reaching end-of-life
  • Mixed Windows and Linux environments
  • Workstations running outdated client OS versions

Security Recommendationโ€‹

  1. Standardize Operating Systems:

    • Minimize OS diversity where possible
    • Establish standard builds for servers and workstations
    • Maintain supported OS versions only
  2. Identify End-of-Life Systems:

    • Create inventory of systems nearing end-of-life
    • Plan upgrade paths for legacy systems
    • Isolate unsupported systems if upgrades are delayed
  3. Patch Management:

    • Ensure all systems receive regular security updates
    • Prioritize critical and high-severity patches
    • Test patches on representative OS versions

How the Test Worksโ€‹

This test analyzes computer objects in Active Directory and:

  • Counts distinct operating systems
  • Shows distribution percentages
  • Identifies computers without OS data
  • Test-MtAdComputerOperatingSystemDetails - Detailed OS and service pack information
  • Test-MtAdComputerStaleEnabledCount - Identifies stale computer accounts
  • Test-MtAdDcOperatingSystemDetails - Domain Controller OS distribution

Test Metadataโ€‹

FieldValue
Test IDAD-DCOMP-04
SeverityInfo
SuiteActive Directory
CategoryAD.Security
PowerShell testTest-MtAdComputerOperatingSystemCount
TagsAD, AD-DCOMP-04, AD.Security

Sourceโ€‹

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