none
MailboxExportRequest -ContentFilter query

    Question

  • I have seen lots of other posts where people run a New-MailboxExportRequest using the ContentFilter switch and get an empty PST but I can't figure out a solution to the query I am trying to run:

    New-MailboxExportRequest -Mailbox DOMAIN\Username -ContentFilter {(Sender -eq 'user@hotmail.com') -or (Participants -eq 'user@hotmail.com')} -FilePath "\\SERVER\UNC path\test.pst"

    The request completes but no content in the PST just folders.  I am trying to export all emails to/from the external SMTP address user@hotmail.com.

    Any ideas please?

    Monday, November 26, 2012 8:18 PM

Answers

  • Try this:

    New-MailboxExportRequest -Mailbox Username -ContentFilter {All -like "*user@hotmail.com*"} -FilePath "\\SERVER\UNC path\test.pst"


    Om

    View Om Prakash Nath's profile on LinkedIn

    • Marked as answer by Tippers Tuesday, January 08, 2013 4:51 PM
    Monday, January 07, 2013 6:22 PM

All replies

  • Hi Tippers,

    I tested the cmdlet and same result as yours.

    I'm researching the issue and will update it soon.


    Frank Wang
    TechNet Community Support

    Wednesday, November 28, 2012 4:29 AM
  • Hi Tippers,

    It seems a bug in Exchange 2012 SP2, so I suggest we wait for the next RU to be released.

    Sean Qiu

    Friday, November 30, 2012 8:01 AM
  • Thanks for the replies.

    Is it a known issue or does it need bringing to the attention of Microsoft?

    Also, when is the next RU scheduled for?

    Chris

    Friday, November 30, 2012 8:31 AM
  • I have recently installed RU5 for SP2 and tried the query again but the same result, an empty PST file.  Is this a bug or is my query syntax incorrect?
    Monday, January 07, 2013 5:12 PM
  • Try this:

    New-MailboxExportRequest -Mailbox Username -ContentFilter {All -like "*user@hotmail.com*"} -FilePath "\\SERVER\UNC path\test.pst"


    Om

    View Om Prakash Nath's profile on LinkedIn

    • Marked as answer by Tippers Tuesday, January 08, 2013 4:51 PM
    Monday, January 07, 2013 6:22 PM
  • Excellent suggestion, that did the trick.

    Many thanks.

    Tuesday, January 08, 2013 4:50 PM