Skip to content

Active Directory Recycle Bin: How to Enable and Recover Deleted Objects

Enable the Active Directory Recycle Bin and recover deleted users, groups, and OUs with Restore-ADObject or ADAC. Learn the prerequisites and why enabling is permanent.

MGMCSA Guru Team August 29, 2026 7 min read
Diagram-style cover showing a deleted Active Directory user object being restored from the AD Recycle Bin back into its original organizational unit

Someone deletes the wrong user account, or worse, drags an entire OU into oblivion during a tidy-up. Without the Active Directory Recycle Bin, getting that back means booting a DC into DSRM and running an authoritative restore — a tense, slow process. With the Recycle Bin enabled, it’s a one-line restore that brings the object back live, group memberships and all, in seconds.

The catch is that the Recycle Bin only helps if you turned it on before the deletion. It doesn’t reach back in time. So this is one of those features you enable on a quiet Tuesday and hope you rarely need, rather than reaching for it in a panic.

This guide covers the prerequisites, how to enable it (and why that’s a permanent decision), and the two ways to recover deleted objects — PowerShell for speed and the Active Directory Administrative Center for a point-and-click restore.

How the Recycle Bin changes deletion

To understand why the Recycle Bin matters, it helps to know what happens when you delete an AD object without it. Normally a deleted object becomes a tombstone: most of its attributes — group memberships, profile data, the things that make the account usable — are stripped away immediately. You can technically “reanimate” a tombstone, but you get back a shell that you then have to rebuild by hand.

With the Recycle Bin enabled, a deleted object instead keeps all its attributes for the duration of the deleted object lifetime. Restoring it returns a fully intact object to its original location. No rebuilding group memberships, no recreating attributes — it’s the object you deleted, brought back whole.

Deletion with and without the Recycle Bin

Without Recycle Bin Object becomes a tombstone; attributes and group memberships stripped. Reanimation gives a shell to rebuild.
With Recycle Bin Object retains all attributes and memberships; Restore-ADObject brings it back intact.

Prerequisites

Two things have to be true before you can enable the Recycle Bin:

  • Forest functional level of Windows Server 2008 R2 or higher. This means every DC in the forest must run 2008 R2 or later. Check it first:
Get-ADForest | Format-List ForestMode
  • Enterprise Admins rights, because enabling the feature is a forest-wide change.

If your forest level is below 2008 R2, you’ll need to retire any older DCs and raise the level first. Raising the functional level is itself one-way, so confirm no legacy DCs remain — the same caution applies when you migrate Active Directory from 2012 R2 to 2022.

Enable the Recycle Bin

With the prerequisites met, enabling it is a single cmdlet. Scope it to your forest and confirm the prompt:

Enable-ADOptionalFeature `
  -Identity "Recycle Bin Feature" `
  -Scope ForestOrConfigurationSet `
  -Target "corp.local"

You can also do it from the Active Directory Administrative Center (ADAC): select the domain, and in the Tasks pane click Enable Recycle Bin. Either way, allow time for the change to replicate to all DCs before you rely on it.

Recover a deleted object with PowerShell

This is the fast path. First, find the deleted object using Get-ADObject with the -IncludeDeletedObjects switch — deleted objects are hidden from normal queries, so you need it explicitly:

# Find a deleted user by name
Get-ADObject -Filter 'Name -like "*Jane Smith*"' -IncludeDeletedObjects |
  Select-Object Name, ObjectGUID, LastKnownParent

The LastKnownParent column shows where the object will return to. Once you’ve found it, restore it by piping to Restore-ADObject:

# Restore a single deleted user
Get-ADObject -Filter 'SamAccountName -eq "jsmith"' -IncludeDeletedObjects |
  Restore-ADObject

The account comes back live, in its original OU, with its group memberships and attributes intact. No DSRM, no reboot, no rebuild.

Restoring a whole OU and its contents

If an entire OU was deleted, order matters: you can’t restore a child object into a container that doesn’t exist yet. Restore the parent OU first, then its children.

# 1. Restore the deleted OU itself first
Get-ADObject -Filter 'Name -eq "Sales" -and ObjectClass -eq "organizationalUnit"' -IncludeDeletedObjects |
  Restore-ADObject

# 2. Then restore the objects that were inside it
Get-ADObject -Filter 'LastKnownParent -like "*OU=Sales*"' -IncludeDeletedObjects |
  Restore-ADObject

Recover with the Administrative Center (GUI)

If you’d rather click than script, the Active Directory Administrative Center gives you a Deleted Objects container:

  1. Open Active Directory Administrative Center.
  2. Select your domain, then open the Deleted Objects container.
  3. Find the object you want, right-click it, and choose Restore (restores to its original location) or Restore To… (lets you pick a different OU).

The GUI is the friendlier option when you’re recovering a handful of items or aren’t sure of an object’s exact name, and it deals with parent/child ordering for you. For bulk restores or scripted recovery, PowerShell is quicker.

AD Recycle Bin readiness checklist

  • Forest functional level is Windows Server 2008 R2 or higher
  • Recycle Bin enabled with Enable-ADOptionalFeature (and replicated)
  • Team knows enabling is permanent and only protects future deletions
  • Admins know the Get-ADObject -IncludeDeletedObjects + Restore-ADObject flow
  • System state backups still in place for pre-enable deletions and DR
  • A test restore performed once so the process is familiar before a real incident

Recycle Bin vs authoritative restore

The Recycle Bin doesn’t replace your backups — it sits alongside them. Each covers a different situation:

When to use which recovery method

Object deleted after Recycle Bin enabled Restore-ADObject or ADAC — fast, live, no downtime.
Object deleted before Recycle Bin enabled Authoritative restore from system state backup in DSRM.
Whole DC failed / database corrupted Non-authoritative restore from system state backup.
Recover historic / overwritten attributes System state backup — Recycle Bin keeps current attributes only.

Wrapping up

The Active Directory Recycle Bin turns one of the scarier admin mistakes — deleting the wrong account or OU — into a quick, low-stress fix. Confirm your forest is at 2008 R2 or higher, enable the feature (knowing it’s permanent), and learn the Get-ADObject -IncludeDeletedObjects into Restore-ADObject pattern before you ever need it.

The one rule to remember: it only protects deletions that happen after you enable it. So enable it now, on a quiet day, rather than wishing you had during an incident. Keep your system state backups going for everything the Recycle Bin can’t cover, and you’ve got AD object recovery handled from both ends.

Frequently asked questions

How do I enable the Active Directory Recycle Bin?

Run Enable-ADOptionalFeature for the Recycle Bin feature, scoped to your forest, from an account in Enterprise Admins. You can also enable it from the Active Directory Administrative Center. Your forest functional level must be at least Windows Server 2008 R2 first. Once enabled, it starts protecting objects deleted from that point forward.

Can I turn the AD Recycle Bin off again?

No. Enabling the Recycle Bin is a one-way, irreversible change to the forest. There's no supported way to disable it once it's on. That's fine — it has minimal downside and is something every domain should have — but go in knowing the decision is permanent.

Does the Recycle Bin recover objects that were deleted before I enabled it?

No. The Recycle Bin only preserves the attributes of objects deleted after it's enabled. Anything deleted beforehand was already stripped of its attributes and can't be fully restored this way — you'd need an authoritative restore from a system state backup instead. Enable it before you need it.

How do I restore a deleted user with PowerShell?

Find the deleted object with Get-ADObject -Filter and the -IncludeDeletedObjects switch, then pipe it to Restore-ADObject. The object comes back to its original location with its group memberships and attributes intact, because the Recycle Bin preserved them. It's live again immediately, no reboot or DSRM needed.

What functional level does the AD Recycle Bin require?

A forest functional level of Windows Server 2008 R2 or higher. That in turn means every domain controller in the forest must be running 2008 R2 or later. Most modern domains easily meet this, but confirm there are no legacy DCs before raising the level, since raising it is also one-way.

Can I recover a deleted OU and everything in it?

Yes, but order matters. You restore the parent OU first, then the child objects (users, groups) back into it, because an object can't be restored to a container that doesn't exist yet. The Active Directory Administrative Center handles much of this for you, or you can script the restore from parent down to children.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.