We help IT Professionals succeed at work.

Powershell CMDlet to Export catch-all (e-journal) emails as an PST

Hi,

We have setup an catch-all email box (e-journal).  Can you provide me with the Powershell cmdlet to export/exmerge the emails to an pst file.  This pst file will then be imported into our archiver appliance.

Inbox currently has ~5,000+ emails, and there are subfolders that contains up-to 107,900 emails.  Our archiver appliance had recently went down, and had to replace it.  Since we ran into a few issues, we had to move emails out of the inbox, so that it does not get stuck.

Running Exchange 2010.  Is it possible to export it to the Cloud (OneDrive) or using ECP to do so?

Thanks in advance.




Henry
Comment
Watch Question

Senior Solution Architect
Most Valuable Expert 2015
Top Expert 2015
Commented:
This is a two step process.

You need to give you account access to Export/Import permissions Use the command below...
New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator

Open in new window


Then use the below command to export the mailbox to PST.
New-MailboxExportRequest -Mailbox <alias> -FilePath \\PSTFileShare\filename.pst

Open in new window


You can then view the process using the below command...
Get-MailboxExportRequest

Open in new window


Will.

Author

Commented:
Will, thank you for the quick response.  The area where I am uncertain of is when I tried to save the file to one of the NAS in our network, using "-FilePath \\NAS\Subfolder\FileName.pst" argument, I received this error, http://screencast.com/t/hABmZJuv.

Thanks again.



Henry
Will SzymkowskiSenior Solution Architect
Most Valuable Expert 2015
Top Expert 2015

Commented:
You did not copy my script. The error messages states "New-MailboxRequest" is not a recognized cmdlet. That is correct cmdlet is New-MailboxExportRequest.

That is your issue.

Will.

Author

Commented:
Don't I feel like a dumba....Thanks Will!



Henry