New-ComplianceSearch

Glenn Maxwell 10,551 Reputation points
2024-06-18T16:30:30.5+00:00

Hi All

i want to delete a recurring meeting invite from a users mailbox. lets say the recipient mailbox is user1@contoso.com. is the below syntax correct. Earlier with Search mailbox syntax we used Kind:meeting, in compliance search do we have that option.

1. Connect-IPPSSession
New-ComplianceSearch -Name "TestDelete" -ExchangeLocation "user1@contoso.com" -ContentMatchQuery 'From:"someuser@somedomain.com" AND subject:"SomeSubject"'
Start-ComplianceSearch -Identity "TestDelete"

2. How many meetings invites the search found how can i know it.

3. To Delete meeting invite is the below syntax correct.
New-ComplianceSearchAction -SearchName "TestDelete" -Purge -PurgeType SoftDelete -Force

4.How to know the deletion status.

Microsoft Exchange Online
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,324 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,448 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,961 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xintao Qiao-MSFT 715 Reputation points Microsoft Vendor
    2024-06-19T09:44:01.9233333+00:00

    Hi, Glenn Maxwell

    Based on your description, I understand that you want to query the number of meeting invitations and the status of the deletion operation.

    After my testing, in compliance search we have that option.

    6.19.1

    The syntax you provided is correct. I successfully deleted the meeting invite. The status after a meeting is successfully deleted is completed. You can use command Get-ComplianceSearch -Identity "TestDelete" | Format-Table Name, Status to view actions that are in the status of the deletion.6.19.2

    However, there is no official documentation on how to query the number of meeting invitations at this time.

    If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.