While attempting to access the Active Directory Recycle Bin, I received the following error:
Enable-ADOptionalFeature: The specified method is not supported.
At line:1 char:25
+Enable-ADOptionalFeature <<<< -Identity āCN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service, CN=Windows NT,CN=Services,CN=Configuration,DC=contoso,DC=comā āScope ForestorConfigurationSet āTarget ācontoso.comā
+CategoryInfo : NotSpecified: (CN=Recycle Bin ..=contoso,DC=com:ADOptionalFeature) [Enable-ADOptionalFeature], ADException
+ FullyQualifiedErrorID : The specified method is not supported,Microsoft.ActiveDirectory.Manegment.Commands.EnableADOptionalFeature
This is caused by either your domain or forest functional level not being set to WIndows2008R2Domain or Windows2008R2Forest or higher.
To determine your current levels, type the following commands in PowerShell.
Import-Module ActiveDirectory
(Get-ADDomain).DomainMode
(Get-ADForest).ForestMode
To set the domain mode, type:
Set-ADDomainMode āIdentity (Get-ADDomain) āDomainMode Windows2008R2DomainTo set the forest mode, type:
Set-ADForestMode āIdentity (Get-ADDomain) āForestMode Windows2008R2Forest
Comments