Delete a meeting invite

Glenn Maxwell 11,316 Reputation points
2020-12-02T21:23:22.09+00:00

Hi All

I want to delete a meeting invite from user1's mailbox using content search, The meeting invite subject is Test 1:1, I am trying to execute the below syntaxes but i am getting error. experts please correct me with the syntaxes.

New-ComplianceSearch -Name "Search01" -ExchangeLocation "user1@Company portal .com" -ContentMatchQuery "(Subject:"Test 1:1")" AND from:"user2@Company portal .com"
Start-ComplianceSearch "Search01"

New-ComplianceSearch -Name "Search02" -ExchangeLocation "user1@Company portal .com" -ContentMatchQuery "(Subject:"Test 1:1")" 'sent>=06/01/2020 AND sent<=10/31/2020 AND from:"user2@Company portal .com"'
Start-ComplianceSearch "Search02"

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,523 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,628 questions
{count} votes

Accepted answer
  1. Joyce Shen - MSFT 16,666 Reputation points
    2020-12-03T07:50:48.937+00:00

    Hi @Glenn Maxwell

    Please try using the syntaxes like below which should work for you:

    New-ComplianceSearch -Name "Search01" -ExchangeLocation "user1@contoso.com" -ContentMatchQuery 'From:"user2@contoso.com" AND subject:"Test 1:1"'  
    Start-ComplianceSearch "Search01"  
    

    And

    New-ComplianceSearch -Name "Search02" -ExchangeLocation "user1@contoso.com" -ContentMatchQuery 'sent>=06/01/2020 AND sent<=10/31/2020 AND subject:"Test 1:1" AND From:"user2@contoso.com"'  
    Start-ComplianceSearch "Search02"  
    

    44704-qa-2020-12-03-16-04-13.png

    For more information: Use Compliance Search to search all mailboxes in Exchange Server


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.