To enable Recycle bin feature in ADDS 2008 R2 you need to do the following steps:
- Connect to a domain controller and open Active Directory Module for Powershell.
- Execute the command: Get-ADOptionalFeature ‘recycle bin feature’.With this line you can see if Recycle bin is enabled or not if EnabledScopes is blank.
- Copy DistinguishedName showed on the executed command and execute the following command: Enable-ADOptionalFeature -identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=YourDomainXXX,DC=XXX’ -Scope ForestOrConfigurationSet -Target ‘YourDomainXXX.XXX’
- Push Y.