Funny 'Export-Mailbox' behaviour

Posted on 2013-10-02
Medium Priority
Last Modified: 2013-12-04
I'm using Export-Mailbox to export some data into PST in various occasions, like when the user is leaving or to slim some users mailboxes.
I noticed something strange recently.
When I run the same command with same parameters, I get different PST sizes !
I was exporting 'Inbox' contents for a specific month for one user, I did it 3 times, and 3 times the file size was different.

When I attached the PSTs to outlook, I've got the same number of items, I checked few attachments and it all looked fine.

I don't remember exactly what the file sizes were so lets assume 1st was 1GB, 2nd was 2GB and 3rd was 3GB.

I thought that the size difference would be just empty space so I compressed the 2nd one and to my surprise, after compression the file was still bigger than a 1st one.

Can someone try to explain me that behavior ?

Question by:tp-it-team
  • 4
  • 3
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39540438
When a typical export is completed it gives a detailed list of all of the items that were exported. When you export the same mailbox different times do these reports match up? Also are there any flags to skip corrupted mailbox items?


Author Comment

ID: 39542925
Well, not really, there is no detailed report. Here is what I get (I skipped first few lines which tell server name, user, location in the AD etc).

SourceGlobalCatalog              : DC
SourceDomainController           :
TargetGlobalCatalog              : DC
TargetDomainController           :
TargetMailbox                    :
TargetServer                     :
TargetDatabase                   :
MailboxSize                      : 5488339KB
IsResourceMailbox                : False
SIDUsedInMatch                   :
SMTPProxies                      :
SourceManager                    :
SourceDirectReports              :
SourcePublicDelegates            :
SourcePublicDelegatesBL          :
SourceAltRecipient               :
SourceAltRecipientBL             :
SourceDeliverAndRedirect         :
MatchedTargetNTAccountDN         :
IsMatchedNTAccountMailboxEnabled :
MatchedContactsDNList            :
TargetNTAccountDNToCreate        :
TargetManager                    :
TargetDirectReports              :
TargetPublicDelegates            :
TargetPublicDelegatesBL          :
TargetAltRecipient               :
TargetAltRecipientBL             :
TargetDeliverAndRedirect         :
Options                          : Default
SourceForestCredential           :
TargetForestCredential           :
TargetFolder                     :
PSTFilePath                      : z:\user_inbox_201109_4.pst
RsgMailboxGuid                   :
RsgMailboxLegacyExchangeDN       :
RsgMailboxDisplayName            :
RsgDatabaseGuid                  :
StandardMessagesDeleted          : 0
AssociatedMessagesDeleted        : 0
DumpsterMessagesDeleted          : 0
MoveType                         : ExportToPST
MoveStage                        : Completed
StartTime                        : 03/10/2013 12:39:17
EndTime                          : 03/10/2013 12:56:42
StatusCode                       : 0
StatusMessage                    : This mailbox has been exported to the PST fi
ReportFile                       : C:\Program Files\Microsoft\Exchange Server\L

There is nothing to skip messages, and when I attach these psts to outlook, they all have the same number of items.
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39543193
What you could try to see if you can get more detail is export 2 copies of the PST files attach them both to an Outlook session and from there rigth click, properties, Folder Sizes button and compare them at the folder level.

Also, do you get the same results when you do different mailboxes or is it just one mailbox in question?
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!


Author Comment

ID: 39543322
When I'm checking the folder size, its the same.
Doesn't matter which mailbox I'm working on.
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39546732
I have tested this in my environment and in my test lab using the the same command export-mailbox -identity "name" -PSTFolderPath c:\path. I have had same export results everytime.

I have tested this with new accounts seasoned accounts. large, small and all of the PST files export the same size.

When you are running this command are you doing it from the same workstation or doing it directly on the server? Have you tried running the command from a different computer? Maybe there is something on the machine that is messing with the file sizes?

Accepted Solution

tp-it-team earned 0 total points
ID: 39596740
I'm doing it on the workstation. Its not possible to do it on the server as it requires 32bit environment.

Author Closing Comment

ID: 39694999
Problem unresolved. Its not that important actually so I'm not interested in continuing investigating it.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Are you in the migration process of your Exchange to Exchange Online? Be aware of customized solutions developed on the transport role on your old Exchange server. They might not be convertible to Exchange Online!
There’s hardly a doubt that Business Communication is indispensable for both enterprises and small businesses, and if there is an email system outage owing to Exchange server failure, it definitely results in loss of productivity.
how to add IIS SMTP to handle application/Scanner relays into office 365.
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 https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

624 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