Check if Active Directory Recycle Bin is enabled and enable AD Recycle Bin

Advertisement




    Back in the day when I started my AD journey, there wasn’t an easy way to recover an accidentally deleted Active Directory object. Back then I found a very helpful tool for Windows Server 2003 and 2008 called ADRestore.net

    However, since Windows Server 2008 R2 they introduced a feature called the Recycle Bin, making recovery of AD objects allot easier. This is not enabled by default however and once enabled you cannot disable it.

    So here are 2 easy steps to check if it's enabled and also how to enable it. Once complete you will want to review a previous post on how to actually restore an object using the recycle bin with methods for both 2008 and 2012

    Check if Recycle Bin is enabled

  1. Open up an admin PowerShell window and use the following command to check if ad recycle bin is enabled

    If  “Enabled Scopes” is empty then it is disabled. The below shows off a disabled environment.


    image

  2. To enable the Recycle Bin feature simply run the following command from an Admin PowerShell windows.



    image
I hope this post has been informative for you.

Enjoyed this? Get more like it.

Scripts, walkthroughs, and real-world fixes — delivered to your inbox twice a month. No spam, ever.

Advertisement

Comments