{"id":43,"date":"2018-03-12T11:13:12","date_gmt":"2018-03-12T11:13:12","guid":{"rendered":"http:\/\/www.blog.mozesoft.com\/?p=43"},"modified":"2023-12-21T13:01:18","modified_gmt":"2023-12-21T13:01:18","slug":"convert-edb-to-pst-with-powershell-cmdlets","status":"publish","type":"post","link":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/","title":{"rendered":"Convert EDB to PST With PowerShell Cmdlets"},"content":{"rendered":"<p>EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged and administrator needs to recover it and export Exchange mailboxes to PST as per their need. Microsoft provides built-in methods to recover mailbox from EDB file and convert it to PST. In this article, I will shed some lights on steps to recover &amp; convert EDB to PST using PowerShell.<\/p>\n<p>Steps to <a href=\"http:\/\/www.mozesoft.com\/emailmigration\/edb-to-pst-converter.html\">Convert EDB file to PST<\/a> file<\/p>\n<p><strong>Step 1:<\/strong> Open elevated command prompt. Run eseutil \/mh MDB01.edb to check status of database if it was dirty shutdown.<\/p>\n<p><strong>Step 2:<\/strong> Run eseutil \/r to repair Exchange database. Execute the following cmdlet:<\/p>\n<p>eseutil \/r E02 \/l \u201cE:\\EXDB12\\Exchange Server\\MDB01\\Logs\u201d \/d \u201cE:\\EXDB12\\Exchange Server\\MDB01\\File\u201d<br \/>\n( where E02 is the file name of check file)<\/p>\n<p><strong>Step 3:<\/strong> Now create RecoveryDB with the following command:<\/p>\n<p>New-MailboxDatabase -Server mail01 -Name RecoveryDB1 -Recovery -EdbFilePath \u201cE:\\EXDB12\\Exchange Server\\MDB01\\File\\MDB01 .edb\u201d -LogFolderPath \u201cE:\\EXDB12\\Exchange Server\\MDB01\\Logs\u201d<\/p>\n<p><strong>Step 4:<\/strong> Once RecoveryDB is created. Its time to mount it. Run the below command to do the same:<\/p>\n<p>Mount-Database RecoveryDB01<\/p>\n<p><strong>Step 5:<\/strong> Run the following command to get a list of mailboxes:<\/p>\n<p>Get-MailboxStatistics -Database RecoveryDB1 | ft \u2013auto<\/p>\n<p><strong>Step 6:<\/strong> Run New-MailboxRestoreRequest to Restore mailbox to an existing user<\/p>\n<p>New-MailboxRestoreRequest -SourceDatabase RecoveryDB1 -SourceStoreMailbox \u201cNik, Smith\u201d -TargetMailbox newuser \u2013AllowLegacyDNMismatch<\/p>\n<p><strong>Note:<\/strong> Where \u201cNik, Smith\u201d is a mailbox which need to be restored from the old database and \u201cnewuser\u201d is a new mailbox you just created.<\/p>\n<p><strong>Step 7:<\/strong> To check the status of a restore request, execute the below command:<\/p>\n<p>Get-MailboxRestoreRequest<\/p>\n<p><strong>Step 8:<\/strong> Once status gets completed, remove restore request with the following cmdlet:<\/p>\n<p>Get-MailboxRestoreRequest -Status Completed | Remove-MailboxRestoreRequest<\/p>\n<p><strong>Step 9:<\/strong> You can convert <a href=\"http:\/\/www.mozesoft.com\/emailmigration\/edb-to-pst-converter.html\">EDB to PST<\/a> PowerShell using New-MailboxExportRequest cmdlet as given below:<\/p>\n<p>New-MailboxExportRequest -Mailbox niksmith -FilePath \/\/fileshare01\/PST\/niksmith.pst<\/p>\n<p><strong>Step 10:<\/strong> To check the status of export request, execute the below command:<\/p>\n<p>Get-Mailboxexportrequest<\/p>\n<p><strong>Step 11:<\/strong> Once the status of export request gets completed, remove export request with the following cmdlet:<\/p>\n<p>Get-Mailboxexportrequest -status completed | Remove-Mailboxexportrequest<\/p>\n<p><strong>Step 12:<\/strong> Delete data from mailbox it was imported to<\/p>\n<p>Disable-Mailbox Nik.Smith@domain.com<\/p>\n<p><strong>Step 13:<\/strong> Delete Recovery database with the following cmdlet:<\/p>\n<p>Remove-MailboxDatabase -Identity \u201cRecoveryDB1\u201d<\/p>\n<p>Then manually delete the file from its location (database and log).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged and administrator needs to recover it and export Exchange mailboxes to PST as per their need. Microsoft provides built-in methods to recover mailbox from EDB file and convert it to PST. In this article, I will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[45],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-exchange-server","tag-convert-edb-to-pst"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Convert EDB to PST With PowerShell Cmdlets<\/title>\n<meta name=\"description\" content=\"Convert EDB to PST - EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged..\" \/>\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\/convert-edb-to-pst-with-powershell-cmdlets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Convert EDB to PST With PowerShell Cmdlets\" \/>\n<meta property=\"og:description\" content=\"Convert EDB to PST - EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged..\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-12T11:13:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-21T13:01:18+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/\"},\"author\":{\"name\":\"Adsank\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"headline\":\"Convert EDB to PST With PowerShell Cmdlets\",\"datePublished\":\"2018-03-12T11:13:12+00:00\",\"dateModified\":\"2023-12-21T13:01:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/\"},\"wordCount\":373,\"commentCount\":0,\"keywords\":[\"Convert EDB to PST\"],\"articleSection\":[\"Exchange Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/\",\"name\":\"Convert EDB to PST With PowerShell Cmdlets\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\"},\"datePublished\":\"2018-03-12T11:13:12+00:00\",\"dateModified\":\"2023-12-21T13:01:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"description\":\"Convert EDB to PST - EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged..\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mozesoft.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Convert EDB to PST With PowerShell Cmdlets\"}]},{\"@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":"Convert EDB to PST With PowerShell Cmdlets","description":"Convert EDB to PST - EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged..","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\/convert-edb-to-pst-with-powershell-cmdlets\/","og_locale":"en_US","og_type":"article","og_title":"Convert EDB to PST With PowerShell Cmdlets","og_description":"Convert EDB to PST - EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged..","og_url":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/","og_site_name":"Blog","article_published_time":"2018-03-12T11:13:12+00:00","article_modified_time":"2023-12-21T13:01:18+00:00","author":"Adsank","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adsank","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#article","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/"},"author":{"name":"Adsank","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"headline":"Convert EDB to PST With PowerShell Cmdlets","datePublished":"2018-03-12T11:13:12+00:00","dateModified":"2023-12-21T13:01:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/"},"wordCount":373,"commentCount":0,"keywords":["Convert EDB to PST"],"articleSection":["Exchange Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/","url":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/","name":"Convert EDB to PST With PowerShell Cmdlets","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/#website"},"datePublished":"2018-03-12T11:13:12+00:00","dateModified":"2023-12-21T13:01:18+00:00","author":{"@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"description":"Convert EDB to PST - EDB files are a database contains mailboxes of each and every user of Exchange Server. Sometimes, EDB got damaged..","breadcrumb":{"@id":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mozesoft.com\/blog\/convert-edb-to-pst-with-powershell-cmdlets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mozesoft.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Convert EDB to PST With PowerShell Cmdlets"}]},{"@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\/43","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=43"}],"version-history":[{"count":3,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}