# Optional feature enabled details should be investigated

Understanding which Active Directory optional features are enabled and their scope is crucial for security management:

Source: https://maester.dev/docs/tests/AD-FEAT-02

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/ad">Active Directory</a> · Active Directory · Directory configuration · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-FEAT-02
```

## Overview

Understanding which Active Directory optional features are enabled and their scope is crucial for security management:

- **Recycle Bin**: Should be enabled at the forest level for object recovery capabilities
- **Privileged Access Management**: May be enabled for specific domains or the entire forest
- **Feature Scope**: Knowing where features are enabled helps ensure consistent security policies

Enabled optional features represent additional capabilities that can enhance security but also increase the attack surface if not properly managed.

#### Control Type

**Operational**

#### Security Recommendation

- Enable Recycle Bin at the forest level if not already enabled
- Document all enabled optional features and their scope
- Regularly review enabled features to ensure they align with security requirements
- Understand the implications of each enabled feature
- Monitor for unauthorized enabling of optional features

#### How the Test Works

This test retrieves detailed information about enabled optional features:
- Total optional features available
- Number of features with enabled scopes
- Feature names and their enabled scope counts
- Detailed breakdown of each enabled feature

#### Related Tests

- `Test-MtAdOptionalFeatureCount` - Counts total available optional features
- `Test-MtAdRecycleBinStatus` - Specifically checks Recycle Bin status

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | AD-FEAT-02 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Directory configuration |
| Area | Infrastructure hardening |
| Resource type | Tenant |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAdOptionalFeatureEnabledDetails](https://github.com/maester365/maester/blob/main/tests/ad/replication/Test.AD-FEAT-02.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:msDS-OptionalFeature:ReadProperty |

</details>

## Source

- Test: [`tests/ad/replication/Test.AD-FEAT-02.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/replication/Test.AD-FEAT-02.ps1)
- Documentation: [`tests/ad/replication/Test.AD-FEAT-02.md`](https://github.com/maester365/maester/blob/main/tests/ad/replication/Test.AD-FEAT-02.md)
