PowerShell Logo Small

Enable-ADOptionalFeature



This is the built-in help made by Microsoft for the command 'Enable-ADOptionalFeature', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Enables an Active Directory optional feature.

SYNTAX


Enable-ADOptionalFeature [-Identity] <ADOptionalFeature> [-Scope] <ADOptionalFeatureScope> [-Target] <ADEntity> [-AuthType <ADAuthType>]
[-Credential <PSCredential>] [-PassThru [<SwitchParameter>]] [-Server <String>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Enable-ADOptionalFeature enables an Active Directory optional feature that is associated with a particular Domain mode or Forest mode.
Active Directory optional features that depend on a specified domain mode or Forest mode must be explicitly enabled after the domain mode or
forest mode is set.


The Identity parameter specifies the Active Directory optional feature that you want to enable. You can identify an optional feature by its
distinguished name (DN), feature GUID, or object GUID. You can also set the parameter to an optional feature object variable, such as
$<localOptionalFeatureObject> or you can pass an optional feature object through the pipeline to the Identity parameter. For example, you can
use the Get-ADOptionalFeature cmdlet to retrieve an optional feature object and then pass the object through the pipeline to the
Enable-ADOptionalFeature cmdlet.


The Scope parameter specifies the scope at which the optional feature will be enabled. Possible values for this parameter are Domain and
Forest.


The Target parameter specifies the domain or forest on which the optional feature will be enabled. You can identify the domain or forest by
its fully-qualified domain name (FQDN), NetBIOS name, or distinguished name (DN) of the domain naming context (domain NC).



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=219297
Disable-ADOptionalFeature
Get-ADOptionalFeature

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'fabrikam.com' -server dc1



Description

-----------

Enable the optional feature 'Recycle Bin Feature' for the forest 'fabrikam.com'. This operation must be performed on the Domain Controller
that holds the naming master FSMO role.




-------------------------- EXAMPLE 2 --------------------------

C:\PS>Enable-ADOptionalFeature 'Feature 1' -Scope ForestOrConfigurationSet -Target
'CN=Configuration,CN={0241853A-6BBF-48AA-8AE0-9C35D0C91B7B}' -server lds.fabrikam.com:50000



Description

-----------

Enable the optional feature 'Recycle Bin Feature' for the AD LDS instance lds.fabrikam.com. This operation must be performed on the AD LDS
instance that holds the naming master FSMO role.




-------------------------- EXAMPLE 3 --------------------------

C:\PS>Set-ADObject -Identity "CN=Partitions,CN=Configuration,CN={4F971828-5BE4-4E94-B532-58F2BFB6A3A5}" -replace @{"msDS-Behavior-Version"=4}



Description

-----------

Sets the ForestMode (Forest Functional Level) to Windows2008R2Forest on an AD LDS instance. The ForestMode must be Windows2008R2Forest or
higher in order to enable the Recycle Bin Feature for AD LDS.