Export (0) Print
Expand All

Esentutl /defragmentation

Updated: November 13, 2012

Applies To: Windows 8, Windows Server 2008, Windows Server 2012

Performs offline compaction of a database.

For examples of how to use this command, see Examples.

esentutl /d <database name> [<options>]

 

Parameter Description

<database name>

The file name of the database to compact.

<options>

You can specify zero or more of the options that are listed in the following table. Separate each option with a space.

 

Option Description

/t<database_name>

Sets the temporary database name. The default is tempdfrg*.edb

/p

Preserves the temporary database (does not instate).

/b<database_name>

Makes a backup copy with the name specified.

/2

Sets the database page size to 2k. The default is auto-detect.

/4

Sets the database page size to 4k. The default is auto-detect.

/8

Sets the database page size to 8k. The default is auto-detect.

/16

Sets the database page size to 16k. The default is auto-detect.

/32

Sets the database page size to 32k. The default is auto-detect.

/v

Verbose output.

/o

Suppresses the logo.

If instating is disabled (the /p option is specified), the original database is preserved uncompacted, and the temporary database will contain the defragmented version of the database.

The following command performs compaction of the Active Directory database stored in the default location on the c:/ drive.

esentutl /d c:/windows/ntds/ntds.dit 

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft