A Guide To Restore Deleted Objects In Active Directory - Lepide
Maybe your like
What happens to a Deleted Active Directory Object?
The following table compares the cycle of a deleted object before and after enabling “Active Directory Recycle Bin”:
| BEFORE | AFTER |
|---|---|
| Deleted object enters a “tombstone” state | The deleted object enters a “logically deleted” state. |
| Attribute “IsDeleted” is changed to TRUE value. | Attribute “IsDeleted” is changed to TRUE value. |
| Value of “WhenDeleted” is changed to “Time Changed”. | |
| A unique value is assigned to Windows security descriptor. | |
| RDN is changed to an impossible value. | |
| The object is moved to “Deleted Objects” container (CN=Deleted Objects). | The object is moved to “Deleted Objects” container (CN=Deleted Objects). |
| The object is in the “tombstone” state for is 180 days for Windows Server 2003 SP1/ 2008 and 60 days in Windows Server 2000/2003. | The object remains in the “logically deleted” state for a period of 60 to 180 days in Windows Server 2008 R2. |
| In tombstone state, most of the link-valued and non-linked value attributes are stripped off. | As soon as an object enters “logically deleted” state, all the object’s link-valued and non-linked value attributes are preserved by the system. Following attributes are not stripped off: Object- GUID, Object-SID, Object-Dist-Name, USN |
| A process called “Garbage collector” removes the object from the database after the tombstone state expires. | The object moves to “Recycle” state. It remains here for another 60 to 180 days. |
| The object is completely erased. | Most of the attributes are erased. |
| The object cannot be recovered. | After the expiry of recycled state, the garbage collection process starts, and it removes the object from the database. |
| The object cannot be recovered. | |
| Here the administrator has to use authoritative restoration to restore the deleted objects. | The administrator can use PowerShell commands, LDP.exe, and AD administrative Center to restore deleted objects. |
Default Tombstone Lifetime and How to Change It
The tombstone lifetime is between 60 days for Windows Server 2000/2003 and 180 days for Windows Server 2003 SP1/ 2008 (in later versions this can be modified using the ADSIEdit tool).
Perform the following steps to check and modify the tombstone lifetime period.
- Access ADSI Edit Console.
- Connect to “Configuration” partition.
- Navigate to “CN=Configuration, DC=www, DC=domain, DC=com” → “CN=”Services”, and expand “CN=Windows NT.”
- Right click on “CN=Directory Service” and click “Properties” in the context menu.
- In “Properties” dialog box, look for “msDS-deletedObjectLifetime” attribute. It shows the default tombstone lifecycle in days.

Figure: Tombstone Lifetime Edit - Select “tombstoneLifetime” attribute and click “Edit” to change its value.
- You can scroll down and access “tombstoneLifetime” attribute and perform the same steps to change it s value.

Figure: Change Tombstone Lifetime
Tag » Active Directory Search Deleted Objects Powershell
-
Restoring Deleted Objects In Active Directory. - ManageEngine
-
Viewing Deleted Objects | Introducing The Active Directory Recycle ...
-
How To Find Who Deleted An AD Object Using Powershell
-
AD Powershell Command For Deleted Users - TechNet - Microsoft
-
How To Query And Restore Deleted AD Users With PowerShell
-
PowerShell To Check Who Deleted AD Object - Windows Techno
-
Searching For Deleted AD User In Powershell - Spiceworks Community
-
How To Restore Deleted AD Objects - Netwrix
-
Restoring Deleted Active Directory Objects/Users - Windows OS Hub
-
List The Active Directory Deleted Objects - Shell{&}co
-
How To Search For Deleted Objects In Active Directory
-
Restoring A Deleted AD Object Using PowerShell (119408)
-
Active Directory Object Recovery - Stealthbits
-
Restoring Deleted Active Directory Objects/Users - Do It Easily