Good day all, I am having difficulty enabling the recycle bin feature. From what I gathered recycle bin was enable in the past but during upgrade from 2008 and 2016, we received error that the recycle bin feature could not be found in active directory.
I have gone majority of guides on how to enable recycle bin. Using the Active Directory Administrative Center, enable recycle bin is greyed out. However when trying command under power shell it states that Object Recycle bin cannot be found.
Example:
PS C:\WINDOWS\system32> Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'domain.com' -server dc1
Error:
Enable-ADOptionalFeature : Cannot find an object with identity: 'Recycle Bin Feature' under: 'CN=Configuration,DC=domain,DC=com'.
At line:1 char:1
+ Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Recycle Bin Feature:ADOptionalFeature) [Enable-ADOptionalFeature], ADIdentityNotFoundException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.ActiveDirectory.Management.Commands.EnableADOptionalFeature
OR
PS C:\WINDOWS\system32> Enable-ADOptionalFeature –Identity 'CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=my,DC=domain,DC=name' –Scope ForestOrConfigurationSet –Target 'domain.com'
Error:
Enable-ADOptionalFeature : Cannot find an object with identity: 'CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=my,DC=domain,DC=name' under:
'CN=Configuration,DC=domain,DC=com'.
At line:1 char:1
+ Enable-ADOptionalFeature –Identity 'CN=Recycle Bin Feature,CN=Optiona ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (CN=Recycle Bin ...=domain,DC=name:ADOptionalFeature) [Enable-ADOptionalFeature], ADIdentityNotFoundException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.ActiveDirectory.Management.Commands.EnableADOptionalFeature
Also using ADSI editor, under CN=Partitions msDS-EnabledFeature field is empty.
Any help or advice would be greatly appreciated. We will probably have to contact microsoft support, but wanted to check here first.