none
Command to export events/appointments for all user RRS feed

  • Question

  • Is there any command through which I can export events/appointments for all the users of the org ?
    Wednesday, July 1, 2015 6:42 AM

All replies

  • I'm no scripting genius, but I'm thinking this might work:

    -------------------------------------------------------------------------------------------------------------------

    $mailboxes = Get-Mailbox -ResultSize Unlimited

    ForEach ($mailbox in $mailboxes){

    New-MailboxExportRequest $mailbox -includefolders Calendar -FilePath "\\server\$mailbox_calendar.pst"

    }

    -------------------------------------------------------------------------------------------------------------------

    At least my thought process is, this will put all mailboxes in the variable $mailboxes, then perform a new export request for each, and save as the $mailbox_calendar.pst filename.

    I would test in a lab or something first though.


    • Edited by DJStatik Wednesday, August 5, 2015 7:17 PM
    Wednesday, August 5, 2015 7:16 PM