Esentutl /file dump

 

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

Generates formatted output of various database file types.

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

Syntax

Esentutl /m[mode-modifier] <filename> [options]

Parameters

Parameter

Description

[mode-modifier]

An optional letter designating the type of file dump to perform. Valid values are:

  • h – dump database header (default)

  • k – dump checkpoint file

  • l – dump log file or set of logs

  • m – dump meta-data

  • s – dump space usage

<file name>

Name of the file to dump. The type of the specified file should match the dump type being requested (for example, if using /mh then <filename> must be the name of the database).

<options>

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

  • /p<pgno>: Dump the specified page from the database.

  • /t <table>: Perform dump for specified table only.

  • /v: verbose

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

  • /c<file>: For dump of a single log file only, dump the log file, in CSV format, to <file>

  • /x: For dump of a single log file only, permits fixup of torn writes at the end of the log file if necessary (Note: requires read/write access to the log file)

Examples

The following example initiates a file dump of metadata for the Active Directory database:

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

Additional references

Command-Line Syntax Key

Esentutl