Changing the Tombstone Lifetime Attribute in Active Directory

3

Click here to load reader

Transcript of Changing the Tombstone Lifetime Attribute in Active Directory

Page 1: Changing the Tombstone Lifetime Attribute in Active Directory

Changing the Tombstone Lifetime Attribute in Active Directoryby Daniel Petri - January 7, 2009Printer Friendly Version

The tombstone lifetime must be substantially longer than the expected replication latency between the domain controllers. The intervalbetween cycles of deleting tombstones must be at least as long as the maximum replication propagation delay across the forest. Becausethe expiration of a tombstone lifetime is based on the time when an object was deleted logically, rather than on the time when aparticular server received that tombstone through replication, an object's tombstone is collected as garbage on all servers atapproximately the same time. If the tombstone has not yet replicated to a particular domain controller, that DC never records thedeletion. This is the reason why you cannot restore a domain controller from a backup that is older than the tombstone lifetime.

By default, the Active Directory tombstone lifetime is sixty days. This value can be changed if necessary. To change this value, thetombstoneLifetime attribute of the CN=Directory Service object in the configuration partition must be modified. This object is locatedhere:

cn=Directory Service,cn=Windows NT,cn=Services,cn=Configuration,dc=

Note: Longer tombstone lifetime decreases the chance that a deleted object remains in the local directory of a disconnected DC beyondthe time when the object is permanently deleted from online DCs. The tombstone lifetime is not changed automatically when you upgradeto Windows Server 2003 with SP1, but you can change the tombstone lifetime manually after the upgrade. New forests that are installedwith Windows Server 2003 with SP1 have a default tombstone lifetime of 180 days.

You can check your tombstone lifetime attribute by using the following command:

dsquery * " cn=Directory Service,cn=Windows NT,cn=Services,cn=Configuration,dc=" -scope base -attr tombstonelifetime

There are several ways of modifying this attributes value, the easiest is using ADSIEdit.

Method #1: Using ADSIEdit

The following explains how to modify this attributes value using ADSI Edit.

Note: ADSIEdit is part of the Windows 2003 Support Tools. To get ADSIEdit you need to install the support tools on your computer/DC.Read my "What are the Windows Server 2003 Support Tools? Where can I get them from?" article for more info on how to obtain theWindows Server 2003 Support Tools (insert link to existing article).

In addition, in order to perform the following steps you'll need to be a member of the Enterprise Admins group.

To view or change attribute values by using ADSIEdit:

On the Start menu, point to Run and then type ADSIEdit.msc and press Enter.1.Navigate to:

cn=Directory Service,cn=Windows NT,cn=Services,cn=Configuration,dc=

2.

Where "ForestRootDN" is the Distinguished Name of your Active Directory Forest Root domain. For example, if your domain's nameis kuku.co.il, then the DN for it would be:

DC=kuku,DC=co,DC=il

Right-click and choose properties.3.

Changing the Tombstone Lifetime Attribute in Active Directory http://www.petri.co.il/changing_the_tombstone_lifetime_windows_ad.htm

1 of 3 1/15/2011 12:27 PM

Page 2: Changing the Tombstone Lifetime Attribute in Active Directory

In the resultant properties dialog, scroll down to tombstoneLifetime, select this attribute and choose Edit.4.

Configure the Tombstone Lifetime Period, then press Ok.5.

Click OK and then close ADSIEdit.6.

When you view properties on cn=Directory Service,cn=Windows NT, cn=Services,cn=Configuration,dc=, if no value is set it means thatthe default value is in effect. Any value that you type in the Edit Attribute box replaces the default value when you click Set .

The default value for these two attributes applies if the attribute is not set (the initial state of the system).

Method #2: Using an LDIF file

Open Notepad and create a text file with the following content:

dn: cn=Directory Service,cn=Windows NT,cn=Services,cn=Configuration,changetype: modifyreplace: tombstoneLifetimetombstoneLifetime:-

Note: Don't forget the "-" on the last line, at the end.

Where is the Distinguished Name of your Active Directory Forest Root domain. For example, if your domain's name is kuku.co.il, then theDN for it would be:

DC=kuku,DC=co,DC=il

Save this file as tombstoneLifetime.ldf (or similar).

Open the Command Prompt and type:

Ldifde –I –f {Path to tombstoneLifetime.ldf}

Method #3: Using a VBS script

You can read more about this option on the Change tombstone lifetime (VBScript) page, which presents code found in Chapter 17 of theActive Directory Cookbook. See the following Links:

TechTasks Code CenterActive Directory Cookbook

Related Articles

Backup Windows Server 2003 Active Directory

Online ad100% free - Buy and sell anything OLX, allclassifieds in Indiawww.olx.in

Manage Active DirectoryStreamline Active Directory Management. Free30-day Trialwww.systemtools.com

Free Tombstone GeneratorDesign a personal tombstone of Your own. Testit!www.tombstonedesign.net

Buyers In 150 CountriesLarge Network Of Businesses Looking For You.Dont Miss This Amazing Oppwww.eBay.in

Changing the Tombstone Lifetime Attribute in Active Directory http://www.petri.co.il/changing_the_tombstone_lifetime_windows_ad.htm

2 of 3 1/15/2011 12:27 PM

Page 3: Changing the Tombstone Lifetime Attribute in Active Directory

Manually Undeleting Objects in Active DirectoryActive Directory Offline DefragmentationRecovering Deleted Items in Active Directory

AWS Privacy Policy | Site Info | Contact | Advertise ©2011 Blue Whale Web Inc. |

Changing the Tombstone Lifetime Attribute in Active Directory http://www.petri.co.il/changing_the_tombstone_lifetime_windows_ad.htm

3 of 3 1/15/2011 12:27 PM