AD-DC-07 - DC operating system count should be retrievable
Overviewโ
Knowing the operating systems running on your domain controllers is important for:
- Lifecycle management: Identifying DCs running end-of-life operating systems
- Security patching: Ensuring all DCs receive security updates
- Feature availability: Determining which AD features are available
- Standardization: Reducing OS variety for easier management
- Upgrade planning: Identifying DCs that need to be upgraded
Running outdated operating systems on domain controllers poses security risks as they may not receive security patches.
Security Recommendationโ
- Standardize on a supported Windows Server version for all DCs
- Plan to upgrade DCs running end-of-life operating systems
- Ensure all DCs are receiving security updates
- Consider running the latest Windows Server version for new DCs
Current Windows Server support status:
- Windows Server 2022: Supported
- Windows Server 2019: Supported
- Windows Server 2016: Supported
- Windows Server 2012 R2: Extended support ended October 2023
- Windows Server 2012: Extended support ended October 2023
- Earlier versions: Not supported
How the Test Worksโ
This test retrieves the OperatingSystem attribute from all domain controllers and counts the unique OS versions in use.
Related Testsโ
Test-MtAdDcOperatingSystemDetails- Detailed OS distribution breakdownTest-MtAdDomainControllerCount- Total DC count
Related linksโ
- Microsoft Learn: Windows Server release information
- ANSSI Active Directory checkpoints: DC/RODC with an obsolete operating system
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-DC-07 |
| Severity | High |
| Suite | Active Directory |
| Category | AD.DomainController |
| PowerShell test | Test-MtAdDcOperatingSystemCount |
| Tags | AD, AD-DC-07, AD.DomainController |
Sourceโ
- Pester test:
tests/ad/domaincontroller/Test-MtAdDcOperatingSystemCount.Tests.ps1 - PowerShell source:
powershell/public/ad/domaincontroller/Test-MtAdDcOperatingSystemCount.ps1


