How to check whether AD recycle bin is enabled on AD 2008R, 2012, 2012R2 or AD 2016
Use below power shell command to check whether AD recycle bin is enabled or not.
If “Enabled Scope” is empty then AD recycle bin is not enabled.
 Replace test.com with your corresponding domain name
Open Active Directory power shell module from Admin tools or Server manager.
 Get-ADOptionalFeature -Filter 'name -like "Recycle bin feature"'If “Enabled Scope” is empty then AD recycle bin is not enabled.
Run below power shell command to enable it.
Enable-ADOptionalFeature –identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,dc=test,dc=com’ –scope ForestConfigurationSet –Target test.com
Comments
Post a Comment