Wednesday, September 12, 2012

Error when enabling Active Directory Recycle Bin

Error when enabling Active Directory Recycle Bin

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 ‘’
  +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

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

 Original Post: