Link to home
Start Free TrialLog in
Avatar of ttrbrtsn
ttrbrtsnFlag for United States of America

asked on

export mailbox using cmdlet

what is the cmdlet for exporting someones mailbox to a pst file. also the cmdlet to view the queue and the remove from list when complete ?
ASKER CERTIFIED SOLUTION
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
First, what exchange version that you are using?

If you are using Exchange 2007, then you can use Export-Mailbox

http://technet.microsoft.com/en-us/library/bb266964(v=exchg.80).aspx

if you are using Exchange 2010, then you can use New-MailboxExportRequest

http://technet.microsoft.com/en-us/library/ff459227(v=exchg.141).aspx

View queue - Get-Queue
@suriyaehnop - the author stated exchange 2010 in the tags and i already posted that technet link above
View queue - Get-Queue

*sigh* - I think he meant the MRS queue which is Get-MailboxExportRequest

Create a new mailbox export that will export all items in a mailbox:

New-MailboxExportRequest -Identity mailtoexport@contoso.com -PSTFolderPath C:\Location\PSTName.pst

Open in new window


View items that are pending in the MRS (Mailbox Replication Service) queue that need to be exported:

Get-MailboxExportRequest

Open in new window


OR
Get-MailboxExportRequestStatistics

Open in new window


When its all done, you can remove the Mailbox export requests in bulk. I usually do this:

Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest -Confirm:$FALSE

Open in new window