[Last Call] Learn how to a build a cloud-first strategyRegister Now


Defragmentation of Exchange 2010 SP1 mode Hosting

Posted on 2011-10-24
Medium Priority
Last Modified: 2012-05-12
Hello friends

I need to defrag my Exchange 2010 SP1 Hosting.
But I found the documentation refers only to the Exchange console.

I need the command to defragment using powershell.

Thank you.
Question by:welltecnologia
  • 3
  • 3

Expert Comment

ID: 37018569
1st Dismount the Database;

Dismount-Database 'db01'

Then use ESEutil to defrag the database

eseutil /d 'db01.edb' /t\\testserver\defrag\temp.edb

the file location is the temp location for the database during the defrag. i.e. a large file storage device.

Author Comment

ID: 37018738
The command was not very clear, I try to run it. Well not quite understand.

After running the command as reassemble the database again?

Expert Comment

ID: 37018852
Which command is not clear?
\\testserver\defrag\temp.edb is a UNC share with enough free space = 115% of the current database size. This is for the eseutil to use to copy data too during the defrag process.
When the process is finished all you have to do is run the Mount-Database command and remount the database.
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.


Author Comment

ID: 37019073
Let me see if I understand correctly then, these are the steps:

1 Run: Dismount-Database 'db01'

2 Run: eseutil /d 'db01.edb' /c:\defrag\temp.edb

3 Run: Mount-Database 'db01'

It would be this way?

Author Comment

ID: 37020255
Please, correct the command ?

Accepted Solution

jfletchster earned 200 total points
ID: 37022815
the /t has to be a UNC share. It cannot be C:\ it has to be unc, also it has to have the /t before it to indicate the temp location
even if its the same machine i.e.
eseutil /d 'db01.edb' /t\\localhost\c$\defrag\temp.edb

the rest is fine

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

825 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