{"id":1716,"date":"2016-09-30T07:03:52","date_gmt":"2016-09-30T07:03:52","guid":{"rendered":"http:\/\/www.stellaroutlooktools.com\/blog\/?p=1716"},"modified":"2018-01-19T04:42:15","modified_gmt":"2018-01-19T04:42:15","slug":"export-pst-from-office-365","status":"publish","type":"post","link":"https:\/\/www.stellaroutlooktools.com\/blog\/export-pst-from-office-365\/","title":{"rendered":"How to Export PST File from Office 365"},"content":{"rendered":"<p>Microsoft does not provide any dedicated tool to export PST from Office 365 online (like Scanpst for PST Repair). Even, New-MailboxExportRequest cmdlet cannot be utilized as the command demands a UNC path. With Office 365, mail server resides in Microsoft\u2019s data centre and to fulfil the purpose, the UNC path requires a point to the server.<!--more--><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1721 aligncenter\" src=\"http:\/\/www.stellaroutlooktools.com\/blog\/wp-content\/uploads\/2016\/09\/export-mailbox-pst-from-office-365.png\" alt=\"export-mailbox-pst-from-office-365\" width=\"304\" height=\"409\" \/><\/p>\n<p>Microsoft doesn\u2019t allow the SMB traffic via firewalls. There are several workarounds that we can execute to export 365 mailboxes to PST file. Here, ways such as using <strong>PowerShell as an administrator<\/strong> or <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"http:\/\/www.stellaroutlooktools.com\/scan\/office-365-extractor.php\" target=\"_blank\" rel=\"noopener\"><strong>Office 365 PST export tool <\/strong><\/a><\/span>have been suggested. However, the manual method that utilizes PowerShell is quite complex and requires technical expertise. The complexity is due to the following:<\/p>\n<ul>\n<li><em>Exporting mailbox after holding necessary rights<\/em><\/li>\n<li><em>Running search for exporting mailbox contents that needs to be archived into a folder in mailbox that you possess right to access<\/em><\/li>\n<li><em>Permitting full access to the mailbox that you need to export to the mailbox for which you hold access rights and can open with MS Outlook <\/em><\/li>\n<\/ul>\n<p>Let\u2019s discuss the entire procedure of exporting Office 365 mailbox to PST using PowerShell as an administrator. Here, it is done with the help of an example where hypothetical mailbox that needs to be exported is hr-managementdtls@convertechgroup.com. The new account that is created in Outlook for exporting the mailbox is hr-freshdtls@convertechgroup.com. The account with administrator rights to Office 365 is dtls_admin@convertechgroup.com. Following is the procedure to execute the export procedure.<\/p>\n<p><strong>#1: Establish Connection to MS Exchange Server using PowerShell<\/strong><\/p>\n<ol>\n<li>In order to initiate procedure to export PST from Office 365 online<u>,<\/u> run the following command in PowerShell:<\/li>\n<\/ol>\n<p><em>\u201c$UserCredential = Get-Credential\u201d<\/em><\/p>\n<p>Enter Office 365 account credentials including \u2018Username\u2019 and \u2018Password\u2019 in Windows PowerShell Credential Request dialog box. Enter the dtls_admin@stellaroutlookemails.com credentials in the pop-up window.<\/p>\n<ol start=\"2\">\n<li>Next, run the following command:<\/li>\n<\/ol>\n<p><em>\u201c$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $UserCredential -Authentication Basic \u2013AllowRedirection\u201d<\/em><\/p>\n<p>-where $ocred is used as UserCredential<\/p>\n<ol start=\"3\">\n<li>Run the following command<\/li>\n<\/ol>\n<p><em>\u201cImport-PSSession $Session\u201d<\/em><\/p>\n<p><em><u>Important!<\/u><\/em><\/p>\n<ul>\n<li><em>While executing the above-mentioned cmdlets and the entire procedure to <u>export Office 365 mailboxes to PST<\/u>, make sure that you key in the correct username and password in Step 1; else, you will not be allowed to proceed further.<\/em><\/li>\n<li><em>You can attempt only three limited open remote PowerShell connections to the Exchange online organization for preventing denial-of-access (DoS) attacks.<\/em><\/li>\n<li><em>Make sure that the account that is being used for connecting to Exchange is enabled for remote PowerShell.<\/em><\/li>\n<li><em>It is vital that \u2018TCP port 80\u2019 traffic must be open between Office 365 and local machine. With limited Internet access policy, it is something that needs to be considered. <\/em><\/li>\n<\/ul>\n<p><strong>#2: Grant Access Right to Mailbox for Export using PowerShell<\/strong><\/p>\n<p>The following example will grant <u>hr-managementdtls@stellaroutlookemails.com <\/u>full access to <u>hr-freshdtls@stellaroutlookemails.com <\/u>mailbox:<\/p>\n<p><em>\u201cAdd-MailboxPermission &#8211; User hr-freshdtls@stellaroutlookemails.com -Identity hr-managementdtls@stellaroutlookemails.com -AccessRights FullAccess -InheritanceType All\u201d<\/em><\/p>\n<p><strong>#3: Open Outlook for New Account<\/strong><\/p>\n<p>You need to open Outlook as <a href=\"mailto:hr-freshdtls@convertechgroup.com\">hr-freshdtls@convertechgroup.com<\/a> and ensure that the <a href=\"mailto:hr-managementdtls@convertechgroup.com\">hr-managementdtls@convertechgroup.com<\/a> mailbox is displayed in the mailbox list in the left pane. Permissions might take a few seconds and even minutes to take effect.<\/p>\n<p><strong>#4: Check Configuration Settings<\/strong><\/p>\n<p>Outlook must be ready to configure for downloading all the mails for a limited time. Click on the <strong>File<\/strong> menu and on the Info page, click on the <strong>Account Settings<\/strong>. From the menu, select <strong>Account Settings<\/strong> and select your account and then click on the <strong>Change button<\/strong>. Make sure that <strong>Use Cached Exchange Mode<\/strong> is enabled i.e. it is checked as well as <strong>Mail to keep offline<\/strong> is set to <strong>All<\/strong>.<\/p>\n<p><strong><em>Note: <\/em><\/strong><em>Relaunch MS Outlook to update the application with recent changes being made and proceed further to export office 365 mailbox to PST using PowerShell. <\/em><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>#5: Export Mailbox to PST using Import\/Export Wizard<\/strong><\/p>\n<p>Follow the steps below:<\/p>\n<ol>\n<li>Use <strong>Import\/Export<\/strong> wizard to export <a href=\"mailto:hr-managementdtls@convertechgroup.com\">hr-managementdtls@convertechgroup.com<\/a> to the PST file. Click on the <strong>File<\/strong> menu, click on <strong>Open &amp; Export<\/strong> and then select <strong>Import\/ Export<\/strong> option<\/li>\n<li>Select <strong>Export to a file<\/strong> from the given list of options and tap on <strong>Next<\/strong><\/li>\n<li>Next, select \u2018<strong>Outlook Data file (.pst)<\/strong>\u2019 from the list and click on <strong>Next<\/strong><\/li>\n<li>Select <a href=\"mailto:hr-managementdtls@convertechgroup.com\">hr-managementdtls@convertechgroup.com<\/a> from the list of mailbox folders and click <strong>Next<\/strong>. Make sure that \u2018<strong>Include Subfolders<\/strong>\u2019 checkbox is checked.<\/li>\n<li>Specify a new name for the file and storage location where the PST file needs to be stored i.e., c:\\tmp\\outlook-archive- hr-managementdtls -20160209.pst.<\/li>\n<li>Under Options section, select either \u2018<strong>Do not export duplicate items<\/strong>\u2019 or \u2018Replace duplicates with items exported\u2019. Next, click <strong>Finish<\/strong> to complete export procedure.<\/li>\n<li>When Outlook prompts to specify password for PST file, provide appropriate password if required or leave the field blank if the applied policy allows you to do it and click on <strong>OK<\/strong><\/li>\n<li>Outlook will remain inoperative during the execution of the export process. Wait until Outlook stops displaying the progress of export procedure and grant control<\/li>\n<\/ol>\n<p><strong>#6: Verify if Export Procedure is Successfully Accomplished<\/strong><\/p>\n<p>To verify if the export process is completely done, check the mailbox size on Server and compare it to the exported PST size. Follow the steps below:<\/p>\n<ol>\n<li>Right click on the mailbox in the right pane and then select \u2018<strong>Data file properties<\/strong>\u2019 from options<\/li>\n<li>Next, click on the <strong>Folder Size<\/strong> button under the <strong>General<\/strong> tab<\/li>\n<li>In the <strong>Folder Size<\/strong> window, click on <strong>Server Data<\/strong> tab and notify the value mentioned in <strong>Total Size<\/strong><\/li>\n<li>Next, check the file properties of PST file being exported. Make sure that the size of this file is comparable to the <strong>Total Size<\/strong> value as shown by MS Outlook. The PST file can appear up to 10% larger in size.<\/li>\n<\/ol>\n<p><strong>#7: When Export Completes <\/strong><\/p>\n<p>When export procedure is completed, you need to remove the permissions that are assigned previously, in the beginning, using PowerShell. This can be done using the following syntax:<\/p>\n<p><em>\u201cRemove-MailboxPermission -User hr-freshdtls@stellaroutlookemails.com -Identity hr-managementdtls@stellaroutlookemails.com -AccessRights FullAccess\u201d<\/em><\/p>\n<p><strong>#8: Close PowerShell Session <\/strong><\/p>\n<p>At last, the PowerShell session needs to close down after the permissions are removed. The following command needs to be executed:<\/p>\n<p><em>\u201cRemove-PSSession $Session\u201d<\/em><\/p>\n<p><strong>Another Comprehensive Way to Export PST File from Office365<\/strong><\/p>\n<p>As the above-described method is quite complicated ultimately confusing the database administrator, it is better to use Stellar Office365 Extractor for the purpose. It is known for extracting complete mailbox data from Office 365 account in one go without interruption. Unlike the manual method, it exports PST file from Office 365 successfully without the administrator having to put much effort. It does the tasks in a simplified manner owing to its Do-it-yourself make.<\/p>\n<p><a href=\"http:\/\/download.stellaroutlooktools.com\/StellarOffice365Extractor.exe\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1830 aligncenter\" src=\"http:\/\/www.stellaroutlooktools.com\/blog\/wp-content\/uploads\/2017\/06\/free-download-large.gif\" alt=\"free download\" width=\"213\" height=\"55\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft does not provide any dedicated tool to export PST from Office 365 online (like Scanpst for PST Repair). Even, New-MailboxExportRequest cmdlet cannot be utilized as the command demands a UNC path. With Office 365, mail server resides in Microsoft\u2019s data centre and to fulfil the purpose, the UNC path requires a point to the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1980,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[437],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/posts\/1716"}],"collection":[{"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/comments?post=1716"}],"version-history":[{"count":4,"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/posts\/1716\/revisions"}],"predecessor-version":[{"id":2005,"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/posts\/1716\/revisions\/2005"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/media\/1980"}],"wp:attachment":[{"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/media?parent=1716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/categories?post=1716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stellaroutlooktools.com\/blog\/wp-json\/wp\/v2\/tags?post=1716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}