Hello,
i tried to enable Active directory recycle bin with this command :
Enable-ADOptionalFeature –Identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration, DC=toto,DC=fr‘ –Scope ForestOrConfigurationSet –Target ‘toto.fr‘
but i have this error :
Enable-ADOptionalFeature:areferencehas beenreturned by the server
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 ‘toto.fr’
+CategoryInfo : NotSpecified: (CN=Recycle Bin ..=toto,DC=fr:ADOptionalFeature) [Enable-ADOptionalFeature], ADException
+ FullyQualifiedErrorID : The specified method is not supported,Microsoft.ActiveDirectory.Manegment.Commands.EnableADOptionalFeature
i am already in forest win 2008 R2 and domain win 2008R2
If i try (Get-ADDomain).DomainMode or (Get-ADForest).ForestMode,
i have always windows2008R2
i try also this command : Enable-ADOptionalFeature "recycle bin feature" -Scope ForestOrConfigurationSet -Target "toto.fr" and same problem
what the problem ?
thanks