How To Backup A Single Mailbox In Microsoft Exchange Server 2010 SP1
The easiest way to back up a single mailbox is to get the user to export the mailbox to a .pst file. But what if you just want to sit down at the server and do it from the PowerShell console? Well, since Exchange 2010 SP1, there is a new cmdlet that makes it easy. The cmdlet name is New-MailboxExportRequest. But there is a tiny problem, your account probably doesn’t have permission to use it yet, so if you try it, you will probably get the rather puzzling message:
The term ‘New-MailboxExportRequest’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
What you need to do is to give your account (I will assume it is Administrator) the required permissions by using the New-ManagementRoleAssignment cmdlet, like this:
New-ManagementRoleAssignment -Role “Mailbox Import Export” -User Administrator
But before you try to use New-MailboxExportRequest, you will need to close the shell and re-open it. Now you can try an actual mailbox export. Note that for the file path, it expects a UNC share name. Since I’ve no idea what your shares are going to be called, I’m going to be naughty, and just do it to the C drive’s default administrative share, named C$.
New-MailboxExportRequest -Mailbox YourUserName -FilePath \\YourServerName\c$\test.pst
Now, if you look at the root of the C: drive on the server, you should see the test.pst file gradually being created. You now have a .pst file that you can import into Outlook, or by using the New-MailboxImportRequest cmdlet.