locked
Export and Delete mailbox content Exchange 2010 SP1 RRS feed

  • Question

  • 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

    Thursday, May 3, 2012 1:36 PM

Answers

  • It was deprecated in 2010.

    1. Unfortunately in Exchange 2010 SP1 there’s 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.
    2. 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

    • Proposed as answer by Troy Werelius Thursday, May 3, 2012 2:19 PM
    • Marked as answer by Xiu Zhang Friday, May 4, 2012 7:04 AM
    Thursday, May 3, 2012 2:00 PM

All replies

  • It was deprecated in 2010.

    1. Unfortunately in Exchange 2010 SP1 there’s 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.
    2. 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

    • Proposed as answer by Troy Werelius Thursday, May 3, 2012 2:19 PM
    • Marked as answer by Xiu Zhang Friday, May 4, 2012 7:04 AM
    Thursday, May 3, 2012 2:00 PM
  • Yes, thanks for the solution.

    We ran this command and it worked

    Search-Mailbox -id "UserName" -DeleteContent

    • Proposed as answer by 成都-杨昆 Monday, October 29, 2012 2:45 AM
    Friday, May 4, 2012 10:18 AM