How to Change Active Directory Tombstone Lifetime Attribute

Photo of author

By Victor Ashiedu

Published

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.

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.

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.

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.

Conclusion

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

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.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend