{"id":1253,"date":"2023-03-03T19:17:35","date_gmt":"2023-03-03T19:17:35","guid":{"rendered":"https:\/\/www.mozesoft.com\/blog\/?p=1253"},"modified":"2023-03-03T19:17:36","modified_gmt":"2023-03-03T19:17:36","slug":"how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell","status":"publish","type":"post","link":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/","title":{"rendered":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?"},"content":{"rendered":"\n<p>To export a Microsoft 365 (Exchange Online) mailbox to PST using PowerShell, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open the PowerShell command prompt with administrator privileges.<\/li><li>Connect to your Microsoft 365 Exchange Online account using the following command:                                  <code>$credential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $credential -Authentication Basic -AllowRedirection Import-PSSession $Session -DisableNameChecking <\/code>                                                                                                                      This will prompt you for your Microsoft 365 account credentials and establish a remote PowerShell session to your Exchange Online account.<\/li><li>Once connected, create a new folder on your local computer where you want to save the PST file.<\/li><li>Run the following command to export the mailbox to a PST file:                                                                                    <code>New-MailboxExportRequest -Mailbox &lt;MailboxName> -FilePath \"&lt;Path>\\ExportedMailbox.pst\" <\/code>                                        Replace <code>&lt;MailboxName><\/code> with the name of the mailbox you want to export and <code>&lt;Path><\/code> with the path to the folder you created in step 3.<\/li><li>Monitor the export request status using the following command:                                                                                       <code>Get-MailboxExportRequest -Mailbox &lt;MailboxName> | Get-MailboxExportRequestStatistics <\/code>                                                This will show you the status of the export request and the progress of the export.<\/li><li>Once the export is complete, you can remove the export request using the following command:                                         <code>Get-MailboxExportRequest -Mailbox &lt;MailboxName> | Remove-MailboxExportRequest <\/code>                                                          This will remove the export request and free up any resources used by the export process.<\/li><\/ol>\n\n\n\n<p>Note: You may need to adjust your Microsoft 365 account permissions or PowerShell execution policy to perform mailbox exports.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>To export a Microsoft 365 (Exchange Online) mailbox to PST using PowerShell, follow these steps: Open the PowerShell command prompt with administrator privileges. Connect to your Microsoft 365 Exchange Online account using the following command: $credential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $credential -Authentication Basic -AllowRedirection Import-PSSession $Session -DisableNameChecking This will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1253","post","type-post","status-publish","format-standard","hentry","category-outlook"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?<\/title>\n<meta name=\"description\" content=\"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?\" \/>\n<meta property=\"og:description\" content=\"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-03T19:17:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-03T19:17:36+00:00\" \/>\n<meta name=\"author\" content=\"Adsank\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adsank\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/\"},\"author\":{\"name\":\"Adsank\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"headline\":\"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?\",\"datePublished\":\"2023-03-03T19:17:35+00:00\",\"dateModified\":\"2023-03-03T19:17:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/\"},\"wordCount\":190,\"articleSection\":[\"Outlook\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/\",\"name\":\"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\"},\"datePublished\":\"2023-03-03T19:17:35+00:00\",\"dateModified\":\"2023-03-03T19:17:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"description\":\"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mozesoft.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/\",\"name\":\"Blog\",\"description\":\"IT Knowledgebase\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\",\"name\":\"Adsank\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"caption\":\"Adsank\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?","description":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/","og_locale":"en_US","og_type":"article","og_title":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?","og_description":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?","og_url":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/","og_site_name":"Blog","article_published_time":"2023-03-03T19:17:35+00:00","article_modified_time":"2023-03-03T19:17:36+00:00","author":"Adsank","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adsank","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/#article","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/"},"author":{"name":"Adsank","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"headline":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?","datePublished":"2023-03-03T19:17:35+00:00","dateModified":"2023-03-03T19:17:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/"},"wordCount":190,"articleSection":["Outlook"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/","url":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/","name":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/#website"},"datePublished":"2023-03-03T19:17:35+00:00","dateModified":"2023-03-03T19:17:36+00:00","author":{"@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"description":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?","breadcrumb":{"@id":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mozesoft.com\/blog\/how-to-export-microsoft-365-exchange-online-mailbox-to-pst-using-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mozesoft.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Export Microsoft 365 (Exchange Online) Mailbox to PST using PowerShell?"}]},{"@type":"WebSite","@id":"https:\/\/www.mozesoft.com\/blog\/#website","url":"https:\/\/www.mozesoft.com\/blog\/","name":"Blog","description":"IT Knowledgebase","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c","name":"Adsank","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","caption":"Adsank"}}]}},"_links":{"self":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/1253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/comments?post=1253"}],"version-history":[{"count":1,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/1253\/revisions"}],"predecessor-version":[{"id":1254,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/1253\/revisions\/1254"}],"wp:attachment":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=1253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/categories?post=1253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/tags?post=1253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}