Solved

Garbage Collection Active Directory 2003

Posted on 2014-01-02
5
801 Views
Last Modified: 2014-02-05
Our DC does not have a set garbage collection so the default is 60 days.... What way can I do to find out the last time garbage collection was performed? Please advise.

Thanks!
0
Comment
Question by:syseng007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39751878
This process by default runs on an interval of 12 hours and default deletion period of 60 days. You can view the objects using ldp.exe.

Changing Garbage Collection Poll - http://support.microsoft.com/kb/198793

Changing deletion time period - http://support.microsoft.com/kb/555994

View deleted objects in AD - http://support.microsoft.com/kb/258310

Will.
0
 
LVL 37

Accepted Solution

by:
Mahesh earned 500 total points
ID: 39752065
Garbage collection is a housekeeping process that is designed to free space within the Active Directory database
if you want to check if Garbage collection is running successfully, You can use LDP.EXE to do the garbage collection forcefully. Here are the steps to be performed on domain controller with domain admins account.

1. In Ldp.exe, when you click Browse on the Modify menu, leave the Distinguished name box empty.
2. In the Edit Entry Attribute box, type "DoGarbageCollection" (without the quotation marks),
3. In the Values box, type "1" (without the quotation marks).
4. Set the Operation value set to Add and click the Enter button, and then click Run.

After this immediately check latest directory service event logs for how many objects got deleted as garbage collection process. I forgot the event ID

A maximum of 5,000 expired tombstones can be deleted at one time. If the number of expired tombstones exceeds 5,000, more than one garbage collection interval is required to clear the backlog or you can run above command multiple times.

Mahesh
0
 

Author Comment

by:syseng007
ID: 39752221
Hi All, Thank you for the info. I don't want to change any settings. Just curious if there's a way to determine the last time a garbage collection was performed like in the event viewer or something....
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 39752228
The above command will not change any settings, it will just trigger garbage collection once manually to ensure that things are working as expected, nothing else.
You could run it once and find out the event id that triggers afterword's and then keep eye on that event id from next interval if its working properly

Mahesh
0
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 39752355
this article explains garbage collection and white space clearing from AD database

in a nutshell, it shows how to change garbage collection logging which will cause event ID 1646 to appear in the ADDS log.  by default, it will only log errors

Returning Unused Disk Space from the Active Directory Database to the File System

http://technet.microsoft.com/en-us/library/cc759378%28v=ws.10%29.aspx
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question