AD-CFG-04 - Optional features count should be retrievable
Overviewโ
Active Directory optional features (and related feature flags) enable or enhance behaviors such as recoverability and directory management capabilities. Incorrectly enabled/disabled features can materially affect your security posture by:
- Reducing your ability to recover from accidental or malicious deletion
- Leaving legacy behaviors in place longer than necessary
- Causing operational drift that attackers can exploit via misconfiguration
In particular, features that improve recovery (such as those related to the Recycle Bin) directly impact resilience during incidents.
Control Typeโ
Operational
Security Recommendationโ
- Ensure critical recoverability features (notably Recycle Bin) are enabled for the partitions that contain important identity data.
- Treat optional feature changes as security configuration changes: use a change control process, test first, and validate after enabling/disabling.
- Keep optional feature configuration consistent across domains/partitions where required.
How the Test Worksโ
This test retrieves the set of enabled AD optional feature flags and reports them as a count/visibility metric so administrators can confirm whether the expected security-enhancing features are active.
Related Testsโ
Test-MtAdRecycleBinEnabledPaths- Shows where Recycle Bin is enabled.Test-MtAdRecycleBinStatus- Validates the Recycle Bin state.
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-CFG-04 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Config |
| PowerShell test | Test-MtAdOptionalFeaturesCount |
| Tags | AD, AD-CFG-04, AD.Config |
Sourceโ
- Pester test:
tests/ad/config/Test-MtAdOptionalFeaturesCount.Tests.ps1 - PowerShell source:
powershell/public/ad/config/Test-MtAdOptionalFeaturesCount.ps1

