How do I move mailboxes to a different mail store and defrag that mail store in exchange 2007?

Posted on 2010-11-16
Last Modified: 2012-08-13
We have 4 mail stores in our environment.  I need to defrag each one.  I have to move the mailboxes off the store before they can be defragged.  What is the command shell for doing that?  Obviously I dont want to do them one at a time.  Thanks
Question by:TriCountyIT
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 74

Expert Comment

by:Glen Knight
ID: 34144701
You don't need to defrag the stores in Exchange 2007.

You create a new mailbox store, move the mailboxes either by selecting them and right clicking then say Move Mailbox or use the Move-Mailbox command from the Exchange Management Shell.

Author Comment

ID: 34144714
There is a lot of space un accounted for.  Is there anything more than defragging the drive?

Accepted Solution

johnnash1180 earned 500 total points
ID: 34144724
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

LVL 74

Expert Comment

by:Glen Knight
ID: 34144734
Can you please be more specific? What do you mean by a lot of space unaccounted for?

Author Comment

ID: 34144755
We have 150 gigs of total space on our exchange database drive.  I do a properties on everything and there is only 110 gigs accounted for.  There is a bunch of space that I have no idea where is.
LVL 13

Expert Comment

ID: 34149982
You've looked with Hidden Files shown and unticked the option in "Folder Options" to "hide protected operating system files"?

I guess that you could have a page file, recycle bin or something else sat on the drive that is using space.  As for the space that you could retrieve from the mailbox database files, you need to look for Event 1221 in the Application log on your exchange server.  This will tell you how much space you could get back by doing an offline defrag.

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article will help to fix the below errors for MS Exchange Server 2013 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…
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
This video discusses moving either the default database or any database to a new volume.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…
Suggested Courses

617 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