Any suggestions? Export (0) Print
Expand All

Enable or Disable Optional Features

Updated: February 28, 2009

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).

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

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

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

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

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

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.

Community Additions

© 2015 Microsoft