Export Contacts Calendar Mailbox PowerShell

Export Contacts Calendar Mailbox PowerShell

Hello,

Sometimes, when you migrate, merge some users inside your Exchange infrastructure, you do not want them to come with a fully loaded PST. Here-under a way to export only contacts and calendar from Exchange mailboxes into PST.

From a PowerShell prompt connected to the source Exchange server:

New-MailboxExportRequest -Mailbox bb8@itfordummies.net -FilePath \\exchange01\e$\PST\bb8.pst -IncludeFolders "#contacts#/*","#calendar#/*"  -Name ContactsCalendars
Export Contacts Calendar Mailbox PowerShell - New-MailboxExportRequest

Export Contacts Calendar Mailbox PowerShell – New-MailboxExportRequest

You can check the progress with:

Get-MailboxExportRequest

Once completed, you can grab the PST copy it to your Exchange server, and then import it back with:

New-MailboxImportRequest -Mailbox simba@itfordummies.net -FilePath \\exchange01\e$\PST\bb8.pst -IncludeFolders "#contacts#/*","#calendar#/*"  -Name ContactsCalendars
Export Contacts Calendar Mailbox PowerShell - New-MailboxImportRequest

Export Contacts Calendar Mailbox PowerShell – New-MailboxImportRequest

Or:

Get-MailboxImportRequest -Name ContactsCalendars | Get-MailboxImportRequestStatistics

Note: This will import BB8’s mailbox into Simba’s mailbox.

You can also combine this with the PST Import service from Office 365. This will allow you to on board users faster on your tenant. You can also plan a second wave with the fully loaded PST. A two waves approach allow a faster “get to work” for new users with their contacts & calendar imported first and mails later.

The second benefit is that you can import the contacts & calendar each night of the week, and the big PST during the weekend without impacted queued users. Everyone will have their contacts & calendar before anyone of the big PST “block” the import pipe of Exchange Online.

Leave a Reply