Skip to content

How to Configure the Active Directory Recycle Bin Print

  • 0

Applies to: Windows Server 2019, Windows Server 2022, and Windows Server 2025.

The Active Directory Recycle Bin allows administrators to restore deleted directory objects with linked attributes preserved.

Prerequisites

  • Administrative access to the affected Windows Server hosts.
  • A tested backup or documented rollback point.
  • An approved maintenance window for production systems.

Step-by-step configuration

  1. Confirm the forest functional level meets the requirement.
  2. Record the current forest optional features.
  3. Enable Recycle Bin for the forest; this action cannot be disabled.
  4. Delete and restore a test object in a non-production OU.
  5. Document the recovery workflow and retention settings.

PowerShell and command-line procedure

Get-ADForest | Select-Object ForestMode
Get-ADOptionalFeature -Filter "Name -like 'Recycle Bin Feature'"
Enable-ADOptionalFeature -Identity "Recycle Bin Feature" -Scope ForestOrConfigurationSet -Target "contoso.example"
Get-ADObject -Filter "isDeleted -eq '$true'" -IncludeDeletedObjects

Verification

The optional feature reports EnabledScopes and a deleted test object can be restored with Restore-ADObject.

Rollback

Recycle Bin cannot be disabled after activation. If activation was unintended, stop further changes and follow the organization recovery plan.

Security and operational guidance

  • Apply least privilege and document every production change.
  • Test the procedure in an isolated environment before broad deployment.
  • Replace all example names, paths, and TEST-NET addresses with approved production values.
  • Monitor relevant Windows event logs after the change.

Related resources

Deploy or manage Canadian Windows VPS infrastructure with networkmanager.info. Validate production decisions against the official Microsoft Windows Server documentation.


Was this answer helpful?

« Back