AD optimise an Active Directory database

Active Directory database can be optimised by defragmenting it. Active Directory normally does an online defragmentation but doing an offline one can recover space in the database.  The tool used for offline defragmentation is Ntdsutil.exe

To run a offline defragmentation firs stop the services or enter DSRM. Then run the following:

activate instance ntds
compact to “<location>”


Once the Database has been compacted

Leave a Reply

Your email address will not be published. Required fields are marked *