Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Export Exchange Mailbox to PST with PowerShell Step Wise Guide

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 27
    Comment on it

    Database admin requires importing EDB (Exchange Database) files to Outlook PST format. The basic reason is to extract data from corrupted EDB files and access it with MS Outlook PST file format. Performing export is one of the tedious work which requires a lot of time as well as efforts.

     

    The earlier editions of Exchange Server before 2010 used an inbuilt utility i.e., ExMerge to export Exchange mailbox to PST. In contrary to it, the above versions of Exchange used PowerShell cmdlets (New-MailboxImportRequest and New-MailboxExportRequest) to perform the import/export functionality in Exchange Server. In this write up, users will get to know the steps to export Exchange Mailboxe to PST with PowerShell cmdlets.

     

    Manual Approach to Export Exchange Mailbox to PST

     

    The article serves with three step process to perform function. All of them are listed below:

     

    Assigning Rights

     

    An account needs to be given a permission to export Exchange Mailbox to PST with PowerShell. Even database administrator does not have permission to perform the operation manually. For this one needs to write following commands in the PowerShell which are listed below:

    • New-ManagementRoleAssignment –Role “Mailbox Import Export” –User usetask

     

    By usetask one refers to name of the account to which rights are granted. To make things convenient, one can grant rights to AD group. In this case, if the right is given to any of the account, it can be added in the group. To perform this, follow the syntax given below:

    • New-ManagementRoleAssignment –Role “Mailbox Import Export” – SecurityGroupExchangeAdmGroup

     

    By ExchangeAdmGroup one refers to the AD group. This process is done in (EAC) Exchange Admin Center GUI. After granting rights, one needs to start EAC again.

     

    Export Exchange mailboxes to PST

     

    To perform process of export successfully, following criteria’s must be satisfied. All of them are listed below:

    • Exchange mailbox to be imported should exist

    • Target Outlook PST file should be present on the network having complete UNC path

    • Account which is to be imported should have access location to PST file of the network

     

    The cmdlet New-MailboxExportRequest export Exchange Mailbox to PST with PowerShell:

    • New-MailboxExportRequest –Mailbox mailtsk –FilePath \\HQ-FS01\ExportPST\mailtsk.pst

     

    The command mentioned above exports entire mailbox to desired PST. To import a particular file folder to the PST, change command slightly. The command is mentioned below:

    • New-MailboxExportRequest –Mailbox mailtsk –FilePath \\HQ-FS01\ExportPST\mailtsk.pst -IncludeFolders “#Inbox#”

     

    In addition to it, order to eliminate a folder from import, the command should be changed as:

    • New-MailboxExportRequest –Mailbox mailtsk –FilePath \\HQ-FS01\ExportPST\mailtsk.pst – ExcludeFolders “#DeletedItems#”

     

    As indicated, the case typically imply on Deleted Items folder. One can even customize command as per requirement. For instance, to import all mails received after 1st February with keywords “Paris” and “MSTask”, execute command as:

    • New-MailboxExportRequest –Mailbox mailtsk –FilePath \\HQFS01\ExportPST\mailtst.pst –ContentFilter {(body –like “*MSTask*”) –and {body –like “*Paris*”) –and (Received –lt “01/02/2016”)}

     

    After exporting Exchange Mailbox to PST with PowerShell, one can even check the status of export task by performing following steps:

    • Get-MailboxExportRequest

     

    Drawback of the manual method

     

    Sometimes, while performing the process one fails to export Exchange Mailbox to PST with PowerShell due to which an error occurs namely mailbox size limit exceed. One can even see the detailed message on screen by using following command shown in screenshot below.

     

     

    One can even skip bad items of the PST files. To specify limit of bad items that can be skipped type the following command:

     

     

    An Expert Solution to the Problem

     

    While performing conversion manually, one feels lethargic as it is too difficult to understand the entire process. One single mistake could lead to data loss. To avoid such hassles, one should try EDB to PST Converter tool. It is easy and secure to perform conversion using the utility.

     

    Final Words

     

    The procedure mentioned above shows detailed process to perform export of Exchange mailboxes to PST. However, process needs execution of PowerShell cmdlets. Only a technically savvy person can perform it. If one has never performed it earlier, don’t even make a single spelling mistake error. It could lead to data loss. Henceforth, to avoid such situations, use EDB to PST converter utility. The tool performs conversion with a blink of an eye.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: