PowerShell Logo Small

Enable-ADOptionalFeature



This is the built-in help made by Microsoft for the command 'Enable-ADOptionalFeature', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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] {Unknown | ForestOrConfigurationSet | Domain} [-Target] <ADEntity> [-AuthType {Negotiate | Basic}]
[-Credential <PSCredential>] [-PassThru] [-Server <String>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Enable-ADOptionalFeature cmdlet 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. The acceptable 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/p/?linkid=291014
Disable-ADOptionalFeature
Get-ADOptionalFeature

REMARKS

<

Examples


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

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



This command enables 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 --------------------------

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



This command enables 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 --------------------------

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



This command 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.