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
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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

837 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