Exchange Server - export-mailbox cmdlet

Asked By Cary Shultz on 14-Apr-10 06:10 PM
Good afternoon!

EXCH2007 SP2 | MS Outlook 2007 environment.  Have a client for whom I
recently 'exmerged' a user's mailbox.  I 'exmerged' the entire mailbox and
then 'exmerged' just the last 90 days (did this on 04/02/2010).  The cmd
that I used for the "90-day" process is this:

export-mailbox -Identity "Joe.Blow" -StartDate 01/01/2010 -EndDate
04/01/2010  -PSTFolderPath D:\PSTFiles\90Days\jblow.pst

The issue is that I see nothing - except the Calendar items.  Nothing in the
Inbox, in any of the many many sub-folders, Sent Items, Deleted
Item....nothing.  There are hundreds of Calendar Items....

Naturally, I did this on a Windows 2003 Server which has the "Exchange 2007
SP2 Management Tools" and MS Outlook 2007 installed and I used an account
that has access to the Mailbox Store.

I - for the same user, at the same time (read: two minutes prior) - exported
the entire mailbox (export-mailbox -Identity "Joe.Blow" -PSTFolderPath
D:\PSTFiles\jblow.pst) and am able to see everything (Inbox, sub-folders,
Sent Items, Deleted Items, Contact, Calendar, et al) just fine when I open
up that pst file.

What am I missing (besides the e-mail - in that "90 day" export-mailbox
process)?

Thanks,

Cary


SG_Dan replied to Cary Shultz on 16-Apr-10 02:28 PM
This sounds like a permissions problem.  you will need full access to the
mailbox to export.  Also have you tried it with out the date range?  This can
be problematic at times.
Cary Shultz replied to SG_Dan on 16-Apr-10 04:01 PM
SG_DAN,

Thanks for the reply.    To answer your questions:

1) Highly doubt that it is a permissions thing.  The account that I used to
do this (mailadmin) has all the proper rights at the Mailbox Server level.
I specifically did it that way so that if we ever created additional Storage
Groups or Mailbox Databases (which - in this case - we can not do....we are
dealing with the Standard Version of Exchange 2007) that I would not have to
remember to run these AD* cmdlets again.

2) As mentioned, I did the full mailbox export right before I did the
there are lots of mails between the two dates specified in the full mailbox
export.  I have tried the -StartDate -EndDate numerous times...same results.
Two colleagues of mine have done this as well....they have the same results
as I do.  I have done this before successfully - in other environments.

I do not know what to tell the client at this point.

Thanks,

Cary
Rich Matheisen [MVP] replied to Cary Shultz on 16-Apr-10 10:07 PM
[ snip ]


Oh my . . . Have you tried this running on a workstation that does not
have Exchange 2003 Management Tools on it? Mixing Exchange server and
Outlook is not such a good idea what with those two fighting over the
right DLL's, and all.
---
Rich Matheisen
MCSE+I, Exchange MVP
Cary Shultz replied to Rich Matheisen [MVP] on 17-Apr-10 05:00 PM
Rich,

No no....you misunderstood.  The Exchange 2007 Management Tools....not
EXCH2003....

On the NASes (Windows 2003 Server R2) at all of our clients that have
EXCH2007 I have done the following:

*Created a mailbox-enabled user account object (mailadmin)
*Provided that account with the proper AD rights - at the Mailbox Server
level (as mentioned in a previous post - not at the Storage Group or Mailbox
Database level)
*Made that account a member of the local Administrators group on the NAS
*Ensured that either MS Outlook 2003 SP3 or MS Outlook 2007 SP1 is installed
on the NAS
*Ensured that the other pre-reqs were installed on the NAS
*Ensured that the 32-bit EXCH2007 Management Tools are installed on the NAS
*Logged on as mailadmin
*Configured MS Outlook 200x  mailadmin profile and opened up MS Outlook

Using the Exchange Management Shell I ran the export-Mailbox -Identity
then added -StartDate "01/01/2010" -EndDate "04/01/2010" for the 90-day

And, please excuse my use of the term "ExMerge" in my original post.  There
are no EXCH2003 servers in any of these environments....pure EXCH2007.  I
just used exmerge as it is shorter than export-mailbox.....my mistake.

Thanks,

Cary
Rich Matheisen [MVP] replied to Cary Shultz on 17-Apr-10 11:51 PM
Why, yes, I did! Sorry. I saw "2003", ExMerge and "Outlook". :-(

There is a chance that the mailbox has some damaged contents that, when
you do not have to look at the date, it works. Can you move the mailbox
to another database and then try it again? If you cannot, I suppose you
could try isinteg and see if that helps.
---
Rich Matheisen
MCSE+I, Exchange MVP
Cary Shultz replied to Rich Matheisen [MVP] on 18-Apr-10 05:02 AM
Rich,

No worries.  Like I said, I debated with myself on using the term 'ExMerge'
and I obviously lost that debate with myself.  I will give it a go with
moving the mailbox to a different Database.  I will create another Storage
Group | Database - not a bad idea anyway as this client has a lot of
mailboxes from an 'over seas' affiliate and putting all those mailboxes in
that Storage Group | Database is not a bad idea for Disaster Recovery
purposes.  I will just throw her mailbox in that one, do my thing and then
put it back.  Not sure why I did not think of that.  For some reason I was
stuck on stupid and had one Storage Group | on Database in mind (although we
have three EXCH2007 Clients who use all five!!! - getting older I am!).

Thanks!

Cary