Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing disabled users calendar invites 2

Status
Not open for further replies.

CassidyHunt

IS-IT--Management
Jan 7, 2004
688
0
0
US
We have a manager who setup reoccurring meetings with lots of attendees that is no longer with the company. Is there a way to remove those meetings from everyone's calendars without having to log in as them and delete them one at a time?

Appreciate the help. Thank you in advance

Cassidy
 
Try this

Cause:
====
There can be numerous reasons why this meeting request was unavailable, one of the possible reason was to delete the meeting request without cancelling the meeting

Resolution:
=======
Ran the powershell to delete the calendar item with specific keywords in the subject and from a specific sender from any Calendar in the Organization. Below is the script:

Get-Mailbox | Export-Mailbox -SenderKeywords -SubjectKeywords "enter keywords here" -IncludeFolders "\Calendar" -DeleteContent

The above command will search every mailbox in the Organization and delete the meeting request meeting both the conditions mentioned

If you want to delete the meeting request from a particular users' calendar, you can use:

Get-Mailbox | Export-Mailbox -Identity -SenderKeywords -SubjectKeywords "enter keywords here" -IncludeFolders "\Calendar" -DeleteContent

If you want to test if the rules are matching the required criteria before deleting, you can export the item to another test mailbox, using:

Get-Mailbox | Export-Mailbox -Identity -TargetMailbox -SenderKeywords -SubjectKeywords "enter keywords here" -IncludeFolders "\Calendar"

Steve

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top