Last updated on Apr 4, 2019
How to enable Active Directory recycle bin
In this post we will look at two ways of how to enable Active Directory recycle bin. The first option will be via the GUI and second using PowerShell.
Open Server Manager then click on Tool >> Active Directory Administrative Centre.
From the Administrative Centre on the left-hand side select the domain and then on the right-hand side click “Enable Recycle Bin” under Tasks.
Next you will receive a warning, click on ok to complete.
Now let’s look at how you can enable the recycle bin using Active Directory PowerShell.
Launch Windows PowerShell and run the following.
Next run the following to enable the recycle bin.
Enable-ADOptionalFeature -Identity 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'o365cloudlab.local' -Server T0365LAB-DC-01
You will receive a warning that the recycle bin feature cannot be disabled once enabled. Type Y and then enter.
How do we know this worked?
Run the following in PowerShell.
Get-ADOptionFeature ‘Recycle Bin Feature’