Esentutl /repair

 

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

Repairs a corrupted or damaged database.

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

Syntax

Esentutl /p <database name> [options]

Parameters

Parameter: <database name>

Description: The file name or database to repair.

<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 temprepair*.edb

/f <name>

Set prefix to use for the name of report files (default: <database>.integ.raw)

/g

Run integrity check before repairing.

/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.

/o

Suppresses the logo.

Remarks

Repair does not run database recovery. If a database is in “Dirty Shutdown” state, it is strongly recommended that before proceeding with repair, recovery is first run to properly complete database operations for the previous shutdown.

The /g option pauses the utility for user input before repair is performed if corruption is detected. This option overrides the /o option.

Examples

The following example repairs a corrupted Active Directory database in the default location:

Esentutl /p c:\windows\ntds\ntds.dit

Additional references

Command-Line Syntax Key

Esentutl