Running eseutil.exe /p

Posted on 2006-07-03
Last Modified: 2012-06-21
I need to run a hard repair on one of our databases that is corrupted.  I've read all the ramifications of running a hard repair, luckily we were able to move all the mailboxes to a different store, but I would still like to give this a shot for practice.  I've also read a lot of problems people seem to be having of the hard repair not finishing and getting hung.  

Anyway, the question I have is what parameters do I need to include with eseutil.exe /p?  I have not been able to find much info on this process.  We don't have much space at all on Exchange server, so if this process creates a temporary database while repairing the original, I'm going to need to include some switches so that it creates this temp database on a network drive.  

I know I need to run an offline defrag and isinteg -fix against the database after the hard repair is completed...
Question by:resourcepc
LVL 29

Accepted Solution

mass2612 earned 500 total points
ID: 17034186

I would run the repair with the /t switch to specify the temp location to a network drive with enough space, then run isinteg to repair any errors, once this is showing no errors then do a defrag using eseutil with the /t switch for the temp database location. MS recommends restoring the database from backup rather than running a repair if possible.

See  -

See -
Eg. eseutil /p priv1.edb /tg:\tmppriv1.edb

    DESCRIPTION:  Repairs a corrupted or damaged database.
         SYNTAX:  ESEUTIL /p <database name> [options]
     PARAMETERS:  <database name> - filename of database to repair
        OPTIONS:  zero or more of the following switches, separated by a space:
                  /s<file>     - set streaming file name (default: NONE)
                  /t<db>       - set temp. database name
                                 (default: TEMPREPAIR*.EDB)
                  /f<name>     - set prefix to use for name of report files
                                 (default: <database>.integ.raw)
                  /i           - bypass the database and streaming file mismatch error
                  /g           - run integrity check before repairing
                  /createstm   - create empty streaming file if the file is missing
                  /o           - suppress logo

 DESCRIPTION:  Performs off-line compaction of a database.
      SYNTAX:  ESEUTIL /d <database name> [options]
  PARAMETERS:  <database name> - filename of database to compact
    OPTIONS:  zero or more of the following switches, separated by a space:
              /b<db>     - make backup copy under the specified name
              /t<db>     - set temp. database name default: TEMPDFRG.EDB)
              /s<file>   - set streaming file name (default: NONE)
              /f<file>   - set temp. streaming file name (default: TEMPDFRG.STM)
              /p         - preserve temporary database (i.e., don't instate)
              /o         - suppress logo
              /i         - do not defragment streaming file
      NOTES:  1) If instating is disabled (i.e., /p), the original
                 database is preserved uncompacted, and the temporary
                 database will contain the defragmented version of the


Author Comment

ID: 17074603
Pretty much just like eseutil /d then.... Thanks!

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This video discusses moving either the default database or any database to a new volume.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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