Export and Delete mailbox content Exchange 2010 SP1
Hello,
We have Exchange 2010 SP1 with Roll-up 4. For some mailbox we need to export the content to pst and delete the exported content from the mailbox.
In Exchange 2007, we use to do by running the following command:
Export-Mailbox -Identity <mailboxname> PSTFolderPath <PSTpath> -DeleteContent
In Exchange 2010, we use the following command to export to pst but we are not able to delete this exported content:
New-MailboxExportRequest -Mailbox <"mailboxname"> -FilePath
<pstpath>
Kindly let us know how to delete these exported content from the mailbox.
Thanks
May 3rd, 2012 9:36am
It was deprecated in 2010.
Unfortunately in Exchange 2010 SP1 theres no replacement for the -DeleteContent parameter that used to be available via MailboxExportRequest. Not sure why they changed it, allot of people miss that ability.
To delete the content of a mailbox, you must use the Search-Mailbox cmdlet with the -DeleteContent parameter. See
http://technet.microsoft.com/en-us/library/dd298173.aspx
James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
May 3rd, 2012 10:00am
Yes, thanks for the solution.
We ran this command and it worked
Search-Mailbox -id "UserName" -DeleteContent
May 4th, 2012 6:18am