<br />
<b>Warning</b>:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>/home/servertools/public_html/blog/wp-content/themes/schema/schema/options/php-po/php-po.php</b> on line <b>187</b><br />
{"id":514,"date":"2019-02-14T10:38:26","date_gmt":"2019-02-14T10:38:26","guid":{"rendered":"http:\/\/www.stellarservertools.com\/blog\/?p=514"},"modified":"2022-07-18T05:57:22","modified_gmt":"2022-07-18T05:57:22","slug":"export-exchange-2016-mailbox-to-pst-powershell","status":"publish","type":"post","link":"https:\/\/www.stellarservertools.com\/blog\/export-exchange-2016-mailbox-to-pst-powershell\/","title":{"rendered":"How to Export Exchange 2016 Mailboxes to PST &#8211; PowerShell"},"content":{"rendered":"\n<p><em><strong>Summary: <\/strong>In this guide, you will learn to export Exchange 2016 mailboxes to PST from the online Exchange database (EDB) using the PowerShell commands in Exchange Management Shell (EMS) and Exchange Admin Center (EAC). We have also mentioned an advanced method to convert Exchange mailboxes from both online and offline Exchange database (EDB) files to PST format with an option to directly export the mailboxes to a Live Exchange server or Office 365 account.<\/em><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>PST or Personal Storage Table, also known as \u2018Personal Folder\u2019, is an Outlook data file widely supported and easily imported to any Outlook account, Office 365 mailbox, or Live Exchange Server. This makes exporting Exchange 2016 mailboxes to PST an ideal backup option.<\/p>\n\n\n\n<p>Besides backup, PST also helps in the seamless migration of mailboxes from one user to another.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methods to Export Exchange 2016 Mailboxes to PST<\/h2>\n\n\n\n<p>To export Exchange 2016 mailboxes to PST, you can use the <strong>New-MailboxExportRequest<\/strong> PowerShell cmdlet in Exchange Management Shell. However, it can export Exchange 2016 mailboxes to PST from an online or hosted Exchange database only.<\/p>\n\n\n\n<p>Besides, you can\u2019t see any export progress as it\u2019s a command-line interface. Thus, you won\u2019t know if the export request you created has exported the PST successfully or not. On the other hand, Exchange Admin Center (EAC) provides a graphical user interface without any filter option. Also, you can export one mailbox at a time. &nbsp;<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.stellarservertools.com\/exchange-edb-pst-converter.php\">Stellar Converter for EDB<\/a><\/strong> software features a graphical user interface, which makes it easy to export PST from EDB files. The software extracts and saves all mailboxes from online and offline EDBs to PST format at your desired location in a few clicks. You can download the demo version for free and try it yourself. The software can also export the mailboxes directly to Office 365 or Live Exchange Server.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/cloud.stellarinfo.com\/micro\/StellarConverterforEDB.exe\"><img loading=\"lazy\" decoding=\"async\" width=\"213\" height=\"55\" src=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2019\/07\/free-download-large-1.gif\" alt=\"\" class=\"wp-image-1424\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Below we have discussed these methods in detail to help you export Exchange 2016 mailboxes to PST with complete integrity and precision.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Steps to Export Exchange 2016 Mailboxes to PST using PowerShell Cmdlets<\/h3>\n\n\n\n<p>Using the <strong>New-MailboxExportRequest<\/strong> cmdlet, you can manually create a mailbox export request to export either single or multiple mailboxes simultaneously. You can also add filters to the mailbox export request.<\/p>\n\n\n\n<p>However,\u00a0this option is available only in on-premises Exchange Server 2016. Also, to execute\u00a0the <strong>New-MailboxExportRequest<\/strong>\u00a0cmdlet, the user should be assigned the <strong>Mailbox Import Export<\/strong> role. This role is not assigned to any user by default, including the administrator.<br><br>You must also create a UNC path to save the exported PST file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Assign Mailbox Import Export Role<\/h4>\n\n\n\n<p>To assign the Mailbox Import Export role to a user, open Exchange Management Shell (EMS) and enter the following command as an administrator,<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">New-Managementroleassignment \u2013Role \u201cMailbox Import Export\u201d \u2013User \u201cUserName\u201d<\/span><\/em><\/p>\n\n\n\n<p>To check if the Mailbox Import Export role is assigned successfully, enter the following command in the EMS window,<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">Get-ManagementRoleAssignment -Role \u201cMailbox Import Export\u201d | Format-List RoleAssigneeName<\/span><\/em><\/p>\n\n\n\n<p>Once the role is assigned successfully, you can execute the&nbsp;<strong><em>New-MailboxExportRequest<\/em>&nbsp;cmdlet<\/strong>&nbsp;to export Exchange 2016 mailboxes to PST files.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Create UNC Folder Path<\/h4>\n\n\n\n<p>To create a UNC folder path for saving the exported Exchange 2016 mailboxes to PST files, follow these steps:<\/p>\n\n\n\n<ul><li>Create a folder on your Exchange Server.<\/li><li>Right-click on the folder and choose to<strong> Give access to&gt; Specific People\u2026<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"269\" src=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Give-access-to-Specific-People.png\" alt=\"\" class=\"wp-image-1908\" srcset=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Give-access-to-Specific-People.png 552w, https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Give-access-to-Specific-People-300x146.png 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<ul><li>Choose your <strong>username<\/strong> or <strong>Everyone<\/strong> from the dropdown and click<strong> Add<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"614\" height=\"454\" src=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Choose-People-on-your-network-to-share-with.png\" alt=\"\" class=\"wp-image-1909\" srcset=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Choose-People-on-your-network-to-share-with.png 614w, https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Choose-People-on-your-network-to-share-with-300x222.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/figure>\n\n\n\n<ul><li>Choose <strong>Read\/Write<\/strong> permission or Owner for the folder access and click <strong>Share<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"614\" height=\"454\" src=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Choose-Read-Write-permission.png\" alt=\"\" class=\"wp-image-1910\" srcset=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Choose-Read-Write-permission.png 614w, https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Choose-Read-Write-permission-300x222.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/figure>\n\n\n\n<ul><li>Copy the shared network path. In this case, it\u2019s <strong>\\\\EXCHANGE19\\UNCPathFolder<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"316\" height=\"416\" src=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Copy-the-shared-network-path.png\" alt=\"\" class=\"wp-image-1911\" srcset=\"https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Copy-the-shared-network-path.png 316w, https:\/\/www.stellarservertools.com\/blog\/wp-content\/uploads\/2022\/07\/Copy-the-shared-network-path-228x300.png 228w\" sizes=\"(max-width: 316px) 100vw, 316px\" \/><\/figure>\n\n\n\n<p>This is the shared folder path location we will use to export and save the exported mailboxes as PST files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PowerShell Commands to Export Exchange 2016 Mailbox to Outlook PST<\/h2>\n\n\n\n<p>Below are the commands to backup Exchange mailboxes to PST based on various scenarios. You can also create multiple export requests at once. However, each mailbox export request should have a unique name. Follow the one that meets your backup needs.<\/p>\n\n\n\n<p><strong><em>NOTE: <\/em><\/strong><em>By default, Microsoft generates ten unique names, and thus, you can create up to ten export requests without providing a unique name. If you need to request more than ten mailbox export requests, you must create a unique name while requesting mailbox export.<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">EXPORT EXCHANGE 2016 MAILBOX TO PST IN A SHARED FOLDER<\/h4>\n\n\n\n<p>You can export a user\u2019s primary mailbox data to a PST file and store it on an Exchange Server\u2019s shared folder. If a shared folder doesn\u2019t exist, create one using the Exchange Admin Center (EAC). Also, ensure read\/write permissions. Then execute the following command,<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">New-MailboxExportRequest -Mailbox Thomson -FilePath \u201c\\\\SERVER22\\MyNetworkPST\\Thomson_Recovered.pst\u201d<\/span><\/em><\/p>\n\n\n\n<p>Thomson\u00a0is the primary mailbox user. <strong><em>MyNetworkPST<\/em>\u00a0<\/strong>is a network shared folder (UNC path) on the Exchange server named\u00a0<strong><em>SERVER22<\/em><\/strong>.<\/p>\n\n\n\n<p>You can export a user\u2019s primary mailbox data to a PST file and store it on an Exchange Server\u2019s shared folder. If a shared folder doesn\u2019t exist, create one using the Exchange Admin Center (EAC). Also, ensure read\/write permissions. Then execute the following command,<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">New-MailboxExportRequest -Mailbox Thomson -FilePath \u201c\\\\SERVER22\\MyNetworkPST\\Thomson_Recovered.pst\u201d<\/span><\/em><\/p>\n\n\n\n<p>Thomson\u00a0is the primary mailbox user. <strong><em>MyNetworkPST<\/em>\u00a0<\/strong>is a network shared folder (UNC path) on the Exchange server named\u00a0<strong><em>SERVER22<\/em><\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>EXPORT THE USER\u2019S ARCHIVE TO PST<\/strong><\/h4>\n\n\n\n<p>To export a user\u2019s archive to PST in Exchange 2016, enter the following command in the EMS.<\/p>\n\n\n\n<p class=\"has-text-align-left\"><span class=\"has-inline-color has-vivid-red-color\"><em>New-MailboxExportRequest -Mailbox Thomson -FilePath \u201c\\\\SERVER22\\MyNetworkPST\\Thomson_Archive.pst\u201d \u2013IsArchive<\/em><\/span><\/p>\n\n\n\n<p>This command exports\u00a0<em>Thomson\u2019s<\/em>\u00a0archive to the PST file on\u00a0the <em>MyNetworkPST<\/em>\u00a0network shared folder located on Exchange Server\u00a0<em>SERVER22<\/em>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">EXPORT EXCHANGE MAILBOX TO PST BY APPLYING FILTER<\/h4>\n\n\n\n<p>If you want to export and backup only certain mailbox items to PST, you can use filters while creating a mailbox export request. By adding \u2013<em>The contentFilter&nbsp;<\/em>parameter in the&nbsp;<strong>New-MailboxExportRequest<\/strong>&nbsp;cmdlet, you can export mailbox messages based on date, keyword matches, etc.<\/p>\n\n\n\n<p>In the following example, \u2018<em>target<\/em>\u2018 and \u2018<em>sales<\/em>\u2018 are the keywords we look for in the body of the message for&nbsp;the <em>Thomson<\/em>&nbsp;user mailbox received before&nbsp;<em>May 2, 2015<\/em>.<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">New-MailboxExportRequest -Mailbox Thomson -ContentFilter {(body -like \u201c*target*\u201d) -and (body -like \u201c*sales*\u201d) -and (Received -lt \u201c02\/05\/2015\u201d)} -FilePath \\\\SERVER22\\MyNetworkPST\\Thomson_MyCompanyReports.pst<\/span><\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>EXPORT ALL MAILBOX ITEMS ON EXCHANGE 2016 TO PST<\/strong><\/h4>\n\n\n\n<p>Finally, if you wish to export all mailbox items from a mailbox on Exchange 2016, enter the following command in the Exchange Management Shell (EMS).<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">New-MailboxExportRequest -Mailbox Thomson -IncludeFolders \u201c#Inbox#\u201d -FilePath \\\\SERVER22\\MyNetworkPST\\Thomson\\ThomsonData.pst<\/span><\/em><\/p>\n\n\n\n<p>The command exports all the&nbsp;<em>Thomson<\/em>&nbsp;mailbox messages and folders to the PST file&nbsp;<em>ThomsonData.pst.<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>EXPORT ALL MAILBOXES TO THE CORRESPONDING PST<\/strong><\/h4>\n\n\n\n<p>If you want to back up all the mailboxes in your organization that reside on the Exchange 2016 server, use these commands in EMS.<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">Get-Mailbox<\/span><\/em><\/p>\n\n\n\n<p>The above command lists all the mailboxes in your organization. Then type following command,<\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">foreach ($Mailbox in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $Mailbox -FilePath \\\\SERVER22\\MyNetworkPST\\Thomson\\$($Mailbox.Alias).pst\u201d}<\/span><\/em><\/p>\n\n\n\n<p>This exports all mailboxes to corresponding PST files at the entered location.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Check Mailbox ExportStatus<\/h4>\n\n\n\n<p><em>To check the detailed status of ongoing export and requests, enter the following command in the EMS,<\/em><\/p>\n\n\n\n<p class=\"has-text-align-left\"><em><span class=\"has-inline-color has-vivid-red-color\">Get-MailboxExportRequestStatistics<\/span><\/em><\/p>\n\n\n\n<p><em>You can also remove the current mailbox export request by executing&nbsp;<\/em><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/ff607464%28v=exchg.160%29.aspx\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Remove-MailboxExportRequest&nbsp;<\/em><\/a><em>cmdlet before starting a new export request with the default request name<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CONCLUSION<\/h2>\n\n\n\n<p>Though&nbsp;the <strong>New-MailboxExportRequest<\/strong>&nbsp;cmdlet does the job, there are chances of missing mail items or failure and PST file corruption during and after export. That\u2019s because large PST files are prone to damage due to integrity issues. However, corruption may also occur due to a network issue. Plus, you can\u2019t see the actual progress and estimate a timeline for export. It may take several hours or days to finish the mailbox export request, which leaves you vulnerable.<\/p>\n\n\n\n<p>Also, you can add filters but can\u2019t preview the mailbox items before exporting them to PST. You can only preview it in Outlook only after export. And if something is missing, you will have to execute the entire process again by changing the filters.<\/p>\n\n\n\n<p>To ease up the Exchange 2016 to PST backup process and avoid PST corruption or data loss, you can export the Exchange mailboxes to corresponding PST files at a granular level using an&nbsp;<a href=\"https:\/\/www.stellarservertools.com\/exchange-edb-pst-converter.php\">EDB converter<\/a>&nbsp;software. The GUI-based software can extract, preview, and export mailboxes and all mail items from offline or online Exchange 2016 databases to PST without dismounting. Thus, you can expect no downtime. Also, there\u2019s no file size limitation, and you can use a filter to export single, multiple, or certain mail items or mailboxes at up to 4x faster speeds with Parallel Processing. Further, you can also export mailboxes from offline EDB to a Live Exchange server or Office 365 and other file formats such as EML, MSG, RTF, PDF, and HTML.<\/p>\n\n\n\n<p>To avoid all the hassle, it\u2019s highly recommended that you try Stellar Converter for EDB software.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: In this guide, you will learn to export Exchange 2016 mailboxes to PST from the online Exchange database (EDB) using the PowerShell commands in Exchange Management Shell (EMS) and Exchange Admin Center (EAC). We have also mentioned an advanced method to convert Exchange mailboxes from both online and offline Exchange database (EDB) files to PST format with an option to directly export the mailboxes to a Live Exchange server or Office 365 account.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[99,100,139],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/posts\/514"}],"collection":[{"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":26,"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":1917,"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/posts\/514\/revisions\/1917"}],"wp:attachment":[{"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stellarservertools.com\/blog\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}