MailboxExportRequest -ContentFilter query

Answered MailboxExportRequest -ContentFilter query

  • Monday, November 26, 2012 8:18 PM
     
     

    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?

All Replies

  • Wednesday, November 28, 2012 4:29 AM
    Moderator
     
     

    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

  • Friday, November 30, 2012 8:01 AM
    Moderator
     
     

    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:31 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

  • Monday, January 07, 2013 5:12 PM
     
     
    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 6:22 PM
     
     Answered Has Code

    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
    •  
  • Tuesday, January 08, 2013 4:50 PM
     
     

    Excellent suggestion, that did the trick.

    Many thanks.