Enable or Disable Optional Features

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to enable or disable optional features in Active Directory Domain Services (AD DS).

Example 1

The following example demonstrates how to enable the optional feature Active Directory Recycle Bin in the Fabrikam.com forest:

Enable-ADOptionalFeature `Recycle Bin Feature' -Scope Forest -Target `Fabrikam'


Enabling the Active Directory Recycle Bin feature is an irreversible action.

Example 2

The following example demonstrates how to disable an Active Directory optional feature in the Fabrikam.com forest:

Disable-ADOptionaFeature `OF2' -Scope Domain -Target `fabrikam'

Additional information

For a full explanation of the parameters that you can pass to Enable-ADOptionalFeature, at the Active Directory module command prompt, type Get-Help Enable-ADOptionalFeature –detailed, and then press ENTER.