{"id":730,"date":"2011-05-23T14:12:29","date_gmt":"2011-05-23T19:12:29","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=730"},"modified":"2011-05-24T11:39:37","modified_gmt":"2011-05-24T16:39:37","slug":"import-export-pst-exchange-2010","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2011\/05\/import-export-pst-exchange-2010\/","title":{"rendered":"Import Export PST Exchange 2010"},"content":{"rendered":"<p>In 2003 we could use a standalone utility called Exmerge.  In 2007\/2010 we&#8217;re forced to utilize the built-in standards of the PowerShell.  I&#8217;m not complaining too much as I really enjoy the command line more than the GUI, but I&#8217;d prefer if Microsoft would keep to the same standard through all the version increases (exmerge worked in 5.5, 2000, and 2003 exchange).<\/p>\n<p>So first thing is first &#8211; assign the Mailbox Import Export role to your user.  Note: even if you&#8217;re using the domain administrator account with which you installed Exchange 2010, you will have to do this &#8211; by default NO users have this ability.<br \/>\n<code>New-ManagementRoleAssignment -Role \"Mailbox Import Export\" -User YOURUSERNAMEHERE<\/code><br \/>\nOr if you want to give an AD group this role, and avoid any future powershell typing:<br \/>\n<code>New-ManagementRoleAssignment -Role \"Mailbox Import Export\" -Group ADGROUPHERE<\/code><\/p>\n<p>Now you must install Outlook 2010 x64 on the Exchange Server.  I honestly have no idea why this is required, but apparently you get the following message if it&#8217;s not installed:<\/p>\n<blockquote><p>To export to or import from a .pst file, the 64-bit version of Outlook 2010 or later must be installed on the server to which you are connecting (server fqdn).<\/p><\/blockquote>\n<p>So then run the following command to export:<br \/>\n<code>Export-Mailbox -Identity USERNAME -PSTFolderPath c:\\path\\to\\saving\\file.pst<\/code><\/p>\n<p>Then you can import using a similar command:<br \/>\n<code>Import-Mailbox -Identity USER@EMAILADDRESS.TLD - PSTFolderPath c:\\path\\to\\saved\\file.pst<\/code><\/p>\n<p>If you want to import all of the pst files in a certain directory, make sure the pst is named with &#8216;alias.pst&#8217; where alias is the name of the mailbox to which the data shall be imported.<br \/>\n<code>Dir c:\\path\\to\\pstfiles | Import-Mailbox -StartDate 01\/01\/2010<\/code><br \/>\nIf you leave off the startdate, it will merge all mail in the PST<\/p>\n<p>http:\/\/technet.microsoft.com\/en-us\/library\/bb629586.aspx<\/p>\n<p>***EDIT***<br \/>\nSo apparently the above did not work on the Exchange 2010 SP1 system I was running against &#8211; command not found.  Perhaps it was because I refused to install Outlook 2010 x64 on the system.  Perhaps that was meant for pre-SP1?  Or maybe 2007?  I stopped really caring.<\/p>\n<p>You still have to assign the Mailbox Import Export role to the user running the command.<br \/>\n<code>New-ManagementRoleAssignment -Role \"Mailbox Import Export\" -User USERNAMEHERE<\/code><\/p>\n<p>Export the mailbox to a PST<br \/>\n<code>New-MailboxExportRequest -Mailbox MAILUSERNAME -FilePath \"\\\\path\\to\\dir_or_c:\\path\\to\\dir\\FILENAME.pst\"<\/code><\/p>\n<p>Check the progress of your export<br \/>\n<code>Get-MailboxExportRequest | Get-MailboxExportRequestStatistics<\/code><\/p>\n<p>Remove the request after completion<br \/>\n<code>Get-MailboxExportRequest | Remove-MailboxExportRequest<\/code><\/p>\n<p>Thanks to Stevieg http:\/\/www.stevieg.org\/2010\/07\/using-the-exchange-2010-sp1-mailbox-export-features-for-mass-exports-to-pst\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In 2003 we could use a standalone utility called Exmerge. In 2007\/2010 we&#8217;re forced to utilize the built-in standards of the PowerShell. I&#8217;m not complaining too much as I really enjoy the command line more than the GUI, but I&#8217;d prefer if Microsoft would keep to the same standard through all the version increases (exmerge &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2011\/05\/import-export-pst-exchange-2010\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Import Export PST Exchange 2010<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=730"}],"version-history":[{"count":4,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/730\/revisions"}],"predecessor-version":[{"id":736,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/730\/revisions\/736"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}