Powershell: export multiple users calendars and deltas

Hello,

So my company is migrating to Office 365 from exchange server (2008 and 2010). I was given the task of exporting everyone's email to a pst file using a powershell script which I successfully completed, but now I have to do the same for their personal calendars as well as the "deltas". I'd like to know if this is possible using powershell as well.
Khari TurnerAsked:
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.

Todd NelsonSystems EngineerCommented:
You should be able to export calendar items with New-MailboxExportRequest using the "IncludeFolders" parameter.

New-MailboxExportRequest -Mailbox "MAILBOXUSER" -IncludeFolders "#Calendar#" -FilePath "\\FILEPATH\EXPORT.PST"

Open in new window

0
Khari TurnerAuthor Commented:
What about multiple users in Active directory? And only those with a email?
0
Todd NelsonSystems EngineerCommented:
What about them?  The command is only for use with mailboxes.  Because of the nature of exports, the command must be run for each mailbox you choose to export data from.  Like this...

$mbx1 = Get-Mailbox -ResultSize Unlimited
foreach ($user in $mbx1) { New-MailboxExportRequest -Mailbox $user -IncludeFolders "#Calendar#" -FilePath \\FILEPATH\$user.PST }

Open in new window


If you need to export based on a specific date, you will need to use the "ContentFilter" parameter.  Like this...

$mbx1 = Get-Mailbox -ResultSize Unlimited
foreach ($user in $mbx1) { New-MailboxExportRequest -ContentFilter {(Received -lt '03/01/2018') -and (Received -gt '02/01/2018')} -Mailbox $user -IncludeFolders "#Calendar#" -FilePath \\FILEPATH\$user.PST }

Open in new window

1

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
Marshal HubsEmail ConsultantCommented:
You can also export multiple users calendars to PST with the help of Stellar EDB to PST Converter. Check following KB article: https://www.stellarinfo.com/support/kb/index.php/article/convert-edb-calender-contacts-enteries-to-pst
0
Todd NelsonSystems EngineerCommented:
Sufficient information provided for solution.
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
Powershell

From novice to tech pro — start learning today.

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.