Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Are you curious about how long the AD database stores deleted objects? Active Directory, Tombstone Lifetime attribute, determines this, and this article will show you how to change it to meet your organization’s needs.

All servers from Windows Server 2003 SP1 and above have a tombstone lifetime of 180 days. However, the tombstone lifetime Lifetime for Windows Server 2003 RTM, Windows Server 2003 R2, and Windows Server 2003 R2 are 60 days.

Option 1: Modify the Tombstone Lifetime with ADSI Edit

The ADSI Edit tool offers you the quickest method to change the AD Tombstone Lifetime attribute. Follow the steps below to use this tool to access and modify the value of the Tombstone Lifetime attribute.

  1. Firstly, search ADSI Edit and open it.
Search ADSI Edit and open it.
  1. Then, right-click ADSI Edit on the left pane and select Connect to…
right-click ADSI Edit on the left pane and select Connect to
  1. On the “Connection Settings” pop-up, click the Select a well known Naming Context drop-down and select Configuration. The “Connection Settings” pop-up will now look like the second screenshot below.

    Then, to continue, click OK.
On the Connection Settings pop up, click the Select a well known Naming Context drop-down and select Configuration
  1. When you clicked OK in step 3, ADSI Edit will add the “Configuration” Context for your AD forest. To expand the context, click on it. Then, navigate to the path below.

    To navigate, click a node, then click the arrow to the left to expand it.
Cofiguration => CN=Configuration => CN=Services => CN=Windows NT
Expand the AD Configuration Naming Context until you get to CN=Windows NT
  1. Next, right-click CN=Directory Service and select Properties.
right-click CN=Directory Service and select Properties.
  1. Finally, to adjust the Active Directory Tombstone Lifetime attribute, locate the value from the CN=Directory Service Properties and double-click it.

    When the TombstoneLifetime attribute opens, modify the value and click OK – see my second screenshot below for details.
adjust the Active Directory Tombstone Lifetime attribute
When the TombstoneLifetime attribute opens, modify the value and click OK

Option 2: Change the Tombstone Lifetime with PowerShell

Like many other Active Directory tasks, you can modify the Tombstone Lifetime attribute of your AD forest using PowerShell.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Below are the procedures:

  1. Run PowerShell as administrator. Then, to get the current value of the Tombstone Lifetime attribute, run the commands below:
$ADFNC = (Get-ADRootDSE).configurationNamingContext
(Get-ADObject -identity "CN=Directory Service,CN=Windows NT,CN=Services,$ADFNC” -properties "tombstonelifetime").tombstonelifetime

If you’ve not previously modified the Tombstone attribute, the command should return 180, which is the default value.

  1. Now to change the value, run this command…
The (Get-ADRootDSE).configurationNamingContext command, saved in the $ADFNC variable, returns the configuration Naming Context for your AD Forest.
$ADFNC = (Get-ADRootDSE).configurationNamingContext
Set-ADObject -Identity “CN=Directory Service,CN=Windows NT,CN=Services,$ADFNC” -Partition $ADFNC -Replace @{tombstonelifetime='213'}

The last command sets the Tombstone Lifetime attribute to 213 days (7 months). To confirm that you modified the value successfully, re-run the Get-ADObject command again…

(Get-ADObject -identity "CN=Directory Service,CN=Windows NT,CN=Services,$ADFNC” -properties "tombstonelifetime").tombstonelifetime

Frequently Asked Questions

1. What is tombstone lifetime in Active Directory?

In AD, the Tombstone Lifetime attribute determines how long a deleted object stays in the Active Directory database before AD deletes it permanently.

This value determines how long you can safely restore a deleted object from AD. So, it is a very important factor when you develop your AD disaster recovery strategy.

Rank #2
Sale
Mastering Active Directory: Design, deploy, and protect Active Directory Domain Services for Windows Server 2022
  • Mastering Active Directory: Design, deploy, and protect Active Directory Domain Services for Windows Server 2022, 3rd Edition
  • ABIS BOOK
  • Packt Publishing
2. What is the default tombstone lifetime in Active Directory 2016?

In Active Directory 2016, the default tombstone lifetime is 180 days. All servers from Windows Server 2003 SP1 and above have a tombstone lifetime of 180 days.

However, the tombstone lifetime Lifetime for Windows Server 2003 RTM, Windows Server 2003 R2, and Windows Server 2003 R2 are 60 days.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
3. How do I check my tombstone lifetime in Active Directory 2016?

To check the Tombstone Lifetime attribute in Active Directory 2016 and other server editions, follow the steps below:

a) Open ADSI Edit, then connect to the “Configuration” Naming Context
b) Next, navigate to CN=Directory Service, right-click the property, and select Properties.


c) Finally, locate tombstoneLifetime attribute, double-click it, change the value, and click OK.

4. How do I change my tombstone lifetime in PowerShell?

For the steps to change the Tombstone Lifetime in PowerShell, read this section of this guide – Change the Active Directory Tombstone Lifetime Attribute with PowerShell (link opens in the same window).

5. How long does Active Directory keep deleted objects?

Active Directory keeps deleted objects based on the value (in days) set in the Tombstone Lifetime value of the Forest. In Windows Server 2003 SP1 and upwards, this value is 80 days.

So, when you delete an object, AD keeps it for 180 days before permanently deleting it from the database.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Conclusion

Before you modify the Tombstone Lifetime attribute value for your Active Directory forest, it is important to understand the implications.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Essentially, this value affects how long AD keeps deleted objects before it permanently deletes them from the database. You need to be cautious while changing this value because it affects your ability to restore deleted objects.

So, before you modify this value, consider how often you receive requests to restore deleted objects.

Once you are confident that you wish to change the tombstone lifetime attribute value, you can use one of the methods discussed in this article to modify it.

If you found this article helpful, click on “Yes” beside the “Was this page helpful” question below. You may also express your thoughts and opinions by using the “Leave a Reply” form at the bottom of this page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.