Export Mailboxes in Exchange 2010

Dear
I have problem when export mailboxes to PST in certain DB , the problem is the export done successfully
but the size of export PST Not the same of real mailbox size please advise .

the export command is :



foreach ($i in (Get-Mailbox -ResultSize Unlimited|Where {$_.Database -eq "All VIP"})) { New-MailboxExportRequest -Mailbox $i -FilePath "\\172.16.1.42\pst\$($i.Alias).pst" }
AlkannetworksAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BM-vnextCommented:
Dear Alkannetworks,

can you please specify if the PST file is larger than the original size in mailbox DB or smaller?
I've seen that pst's are considerable bigger when exported, since the dumpster data is by default also exported.

If you don't want to export data that the user already deleted, you can use the flag
-excludedumpster in your command. This data is not counted in your mailbox database size.
0
AlkannetworksAuthor Commented:
Dear
i have checked all the exported PST files and i have found that the main problem in mailboxe size over 2 GB , if the mailbox in example size of it 5 GB the exported PST With range 3 GB
0
AlkannetworksAuthor Commented:
dear
any help
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

BM-vnextCommented:
This is really strange, actually never seen it this way around.
Are you sure the exports have been completed successfully?

Also what I think of is encoding. In some cases the pst file is encoded differently that the actual mailbox data, resulting in a different file size on you OS.

A wild guess is, how is the partition formatted where the pst is stored? If it is FAT32 or something it might not be able to support large files.

Will do some more research on it.
0
AlkannetworksAuthor Commented:
yeah , but i am every time did that on my external HDD , and it export mailboxes without any problem i dont why is the reason and it really affect my works
0
AlkannetworksAuthor Commented:
if i have export the certain one mailbox have this problem it export to pst without any problem this error happnede when i made export from the DB not on the mailbox level
0
AmitIT ArchitectCommented:
Run DB repair command let on mailbox db. It is a built-in command.

http://blogs.technet.com/b/exchange/archive/2010/08/23/3410708.aspx
0
Sanjay SantokiCommented:
Hello,

Based on my experience; if you are able to export to PST fine at mailbox level it should be working at the database level as well. Are you getting any error?

Do you find any unusual things in mailbox export logs?

Regards,
Sanjay Santoki
0
ash007Commented:
Hi,

You can check the database integrity & remove any logical corruption on the database
0
AlkannetworksAuthor Commented:
dear ash007
how i can do that please
0
SteveCommented:
include '-baditemlimit 0' so errors cause the export to fail. this would confirm if corruption is the issue or not.

foreach ($i in (Get-Mailbox -ResultSize Unlimited|Where {$_.Database -eq "All VIP"})) { New-MailboxExportRequest -Mailbox $i -baditemlimit 0 -FilePath "\\172.16.1.42\pst\$($i.Alias).pst" } 

Open in new window

0
AlkannetworksAuthor Commented:
[PS] C:\Users\ibrahim.nakip\Desktop>foreach ($i in (Get-Mailbox -ResultSize Unlimited|Where {$_.Database -eq "All VIP"})
) { New-MailboxExportRequest -Mailbox $i -baditemlimit 0 -FilePath "\\172.16.1.42\pst\$($i.Alias).pst" }
Unable to open PST file '\\172.16.1.42\pst\ahmed.abdelaal.pst'. Error details: Header file length is zero. If this
file is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 38B68D38,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local


Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued
Unable to open PST file '\\172.16.1.42\pst\ahmed.mounir.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 2F6A5604,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/CFC/Ahmed Sultan                Queued
MailboxExport1                                 alkancit.local/Alkan CIT/CFO/Ali Salama        Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Amal Mansy     Queued
MailboxExport1                                 alkancit.local/Alkan Holding/Ali Salama        Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Ayman Mohsen   Queued
MailboxExport1                                 alkancit.local/Alkan Holding/Chairman          Queued
Unable to open PST file '\\172.16.1.42\pst\Emad.Elsadek.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 1C7B369F,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued
Unable to open PST file '\\172.16.1.42\pst\ibrahim.nakip.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 457C0AFE,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

Unable to open PST file '\\172.16.1.42\pst\IT-Support.pst'. Error details: Header file length is zero. If this file is
from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : ACBC462,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/IT Helpdesk    Queued
Unable to open PST file '\\172.16.1.42\pst\jailan.gamal.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : B6681448,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Installatio... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Installatio... Queued
MailboxExport1                                 alkancit.local/Alkan Holding/Khaled Nosseir... Queued
Unable to open PST file '\\172.16.1.42\pst\KhaledNosseir-knosseir.pst'. Error details: Header file length is zero. If
this file is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : AFD5D6F0,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

Unable to open PST file '\\172.16.1.42\pst\KhaledNosseir-mnosseir.pst'. Error details: Header file length is zero. If
this file is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : A30370B2,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Disabled Users/Mahmoud Saleh... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Release        Queued
Unable to open PST file '\\172.16.1.42\pst\SohaMowafy.pst'. Error details: Header file length is zero. If this file is
from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 4CE8F381,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/Warehouse - CIT/Ta... Queued
MailboxExport1                                 alkancit.local/Alkan Networks/Sales/Tamer S... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued


[PS] C:\Users\ibrahim.nakip\Desktop>
         Welcome to the Exchange Management Shell!

Full list of cmdlets: Get-Command
Only Exchange cmdlets: Get-ExCommand
Cmdlets that match a specific string: Help *<string>*
Get general help: Help
Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
Show quick reference guide: QuickRef
Exchange team blog: Get-ExBlog
Show full output for a command: <command> | Format-List

Tip of the day #95:

Use this command to find failure messages for all failed moves:

Get-MoveRequest -MoveStatus Failed | Get-MoveRequestStatistics | ft Alias, percentcomplete, message -auto

VERBOSE: Connecting to EXCH-DB.alkancit.local
VERBOSE: Connected to EXCH-DB.alkancit.local.
[PS] C:\Users\ibrahim.nakip\Desktop>foreach ($i in (Get-Mailbox -ResultSize Unlimited|Where {$_.Database -eq "All VIP"})
) { New-MailboxExportRequest -Mailbox $i -baditemlimit 0 -FilePath "\\172.16.1.42\pst\$($i.Alias).pst" }
Unable to open PST file '\\172.16.1.42\pst\ahmed.abdelaal.pst'. Error details: Header file length is zero. If this
file is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 38B68D38,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local


Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued
Unable to open PST file '\\172.16.1.42\pst\ahmed.mounir.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 2F6A5604,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/CFC/Ahmed Sultan                Queued
MailboxExport1                                 alkancit.local/Alkan CIT/CFO/Ali Salama        Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Amal Mansy     Queued
MailboxExport1                                 alkancit.local/Alkan Holding/Ali Salama        Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Ayman Mohsen   Queued
MailboxExport1                                 alkancit.local/Alkan Holding/Chairman          Queued
Unable to open PST file '\\172.16.1.42\pst\Emad.Elsadek.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 1C7B369F,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued
Unable to open PST file '\\172.16.1.42\pst\ibrahim.nakip.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 457C0AFE,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

Unable to open PST file '\\172.16.1.42\pst\IT-Support.pst'. Error details: Header file length is zero. If this file is
from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : ACBC462,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/IT Helpdesk    Queued
Unable to open PST file '\\172.16.1.42\pst\jailan.gamal.pst'. Error details: Header file length is zero. If this file
is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : B6681448,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Installatio... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Installatio... Queued
MailboxExport1                                 alkancit.local/Alkan Holding/Khaled Nosseir... Queued
Unable to open PST file '\\172.16.1.42\pst\KhaledNosseir-knosseir.pst'. Error details: Header file length is zero. If
this file is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : AFD5D6F0,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

Unable to open PST file '\\172.16.1.42\pst\KhaledNosseir-mnosseir.pst'. Error details: Header file length is zero. If
this file is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : A30370B2,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Disabled Users/Mahmoud Saleh... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/MIS/IT/Release        Queued
Unable to open PST file '\\172.16.1.42\pst\SohaMowafy.pst'. Error details: Header file length is zero. If this file is
from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 4CE8F381,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local

MailboxExport1                                 alkancit.local/Alkan CIT/Warehouse - CIT/Ta... Queued
MailboxExport1                                 alkancit.local/Alkan Networks/Sales/Tamer S... Queued
MailboxExport1                                 alkancit.local/Alkan CIT/Board & Directors/... Queued


[PS] C:\Users\ibrahim.nakip\Desktop>

Open in new window

0
SteveCommented:
You haven't posted a question with your most recent response so I can't be sure what you are asking, but it looks like a previous export failed. you probably need to delete the incomplete PST files but this may also be a good indicator that the exports didn't complete and may explain why they are smaller than you expected.
0
AlkannetworksAuthor Commented:
sorry , i have run the command it gives me an error message for some mailboxes as below


Unable to open PST file '\\172.16.1.42\pst\KhaledNosseir-knosseir.pst'. Error details: Header file length is zero. If
this file is from a previously failed pst export, please delete the file and resume the export.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : AFD5D6F0,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest
    + PSComputerName        : exch-db.alkancit.local
0
AlkannetworksAuthor Commented:
and also i have delete all PST files which had this error and exported again but also it exports
files smaller than original  .
0
SteveCommented:
Increase baditemlimit to 30, delete existing psts and retry it. If it geta further before erroring it confirms that db corruption is badly affecting your exports.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AlkannetworksAuthor Commented:
Ok i will test and reply to u
0
AlkannetworksAuthor Commented:
dear  totallytonto
many thanks when i run the command after add Increase baditemlimit to 30 , the export file is about the same file of mailbox , that means i must run the export command after increase baditemlimit to 30 on all Export DB to pst command as below

foreach ($i in (Get-Mailbox -ResultSize Unlimited|Where {$_.Database -eq "All VIP"})) { New-MailboxExportRequest -Mailbox $i -baditemlimit 30 -FilePath "\\172.16.1.42\pst\$($i.Alias).pst" }
0
SteveCommented:
I'm afraid this confirms the mailboxes are corrupted.
If you continue to export with a baditemlimit set it means the mailbox will continue to export even if corruption is identified, and some content may be missing from the mailbox export as a result.

It is often better to lose a few corrupted messages than fail to export the mailbox, but it's upto you if the possibility of missing some messages is an issue.
0
AlkannetworksAuthor Commented:
ok , how i can fix the corruption of these mailboxes
thanks
0
SteveCommented:
you cant. the corrupted messages are effectively lost unless you can restore them from a backup.

there are various utils that 'fix' corruption in exchange DBs, but the 'fix' is basically their removal from the DB.
0
AlkannetworksAuthor Commented:
thanks , that means i have must to run the export command with ( badlimititem 30) to overcome of my problem with these mailboxes , also if i will import the exported pst again i will lost all corrupted mails ? as i am right .

Thanks
0
ash007Commented:
Yes u will not  get any corrupt items in pst file
0
AlkannetworksAuthor Commented:
Many Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.