locked
export outlook email data via PowerShell cmdlet RRS feed

  • Question

  • Dears ,

    I need to implement an automatic procedure to export outlook 2016 email data to a .PST file , is there anyway to export outlook email data to PST with powershell ?

    Thanks

    Tuesday, February 14, 2017 3:40 PM

All replies

  • Please follow the steps mentioned at http://www.cumc.columbia.edu/it/howto/email/exp.html#top to export Outlook emails into PST.

    Alternatively, Lepide exchange recovery manager can also perform this task.
    Wednesday, February 15, 2017 9:07 AM
  • Dear bishanwalter ,

    Thanks for your reply , I wonder is there any PowerShell script to export emails as PST file ?

    Thanks

    Wednesday, February 15, 2017 9:13 AM
  • Hi Ary,

    Use below command to export the mailbox data in to a PST file

    New-MailboxExportRequest -Mailbox AylaKol -FilePath "\\SERVER01\PSTFileShare\Ayla_Recovered.pst"
    

    You will have to create a shared path in order to export the data

    Wednesday, February 15, 2017 9:39 AM
  • Hi Ary,

    Use below command to export the mailbox data in to a PST file

    New-MailboxExportRequest -Mailbox AylaKol -FilePath "\\SERVER01\PSTFileShare\Ayla_Recovered.pst"
    

    You will have to create a shared path in order to export the data

    Please note that this is performed on the server side, and the user performing the export must be a member of a role group which has the Mailbox Import Export role added.

    Regards,

    Ethan Hua


    Please remember to mark the replies as answers if they helped.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, February 15, 2017 11:28 AM
  • Dears ,

    Thanks for your reply , I need to run the export script on the computers that are running outlook 2016 not on the server , So I wonder if there is a PowerShell cmdlet to export the email as pst files on the client computer that is running outlook 2016 .

    Thanks


    • Edited by Ary Ahmed Wednesday, February 15, 2017 7:23 PM
    Wednesday, February 15, 2017 7:22 PM
  • Dears ,

    Thanks for your reply , I need to run the export script on the computers that are running outlook 2016 not on the server , So I wonder if there is a PowerShell cmdlet to export the email as pst files on the client computer that is running outlook 2016 .

    Thanks


    There are only two ways to export/import PST file to a mailbox

    1. Via Outlook wizard 

    2. Via the command that i gave. The pst file is fetched from the mailbox from the server 

    Hence powershell is a feature that can be utilised to fetch the data from the server not from Outlook 

    Outlook is a rich client application but does not provide an inbuild powershell help

    Hope this answers your query

    Thursday, February 16, 2017 8:47 AM