Forum Discussion
How to delete all calendar appointments booked by terminated users?
If the user account still exists, use the Remove-CalendarEvents cmdlet: https://technet.microsoft.com/en-us/library/mt784593(v=exchg.160).aspx
That works only for cloud mailboxes though. Otherwise, you will have to use some EWS-based script to find and properly cancel the appointments. Removing them via Search-Mailbox will not send cancelcation notices.
- lanTH33462Mar 10, 2022Copper Contributor
The Powershell cmdlets don't work. They are not recognized as cmdlets.
- DeletedOct 16, 2017
Thanks Vasil.
If the user account DOES NOT exists ( i.e. If the On premsise AD account is in disabled state and o365 mailbox is in softdeleted state) then How to find all inactive users that have booked meetings and how to cancel the meetings and then send email notifications to the attendees.
Any scrip will be very usefull for me
Thanks
Sounder
- VasilMichevOct 17, 2017MVP
If the user doesnt exist, you will only be able to delete them (not cancel). There's an example script here: https://social.msdn.microsoft.com/Forums/en-US/c94b2f4b-a3a0-4006-973d-b150fae078ca/using-ews-to-cancel-a-meeting-in-a-room-mailbox?forum=exchangesvrdevelopment#bc8ad055-d79e-4aae-aeb2-61d835d200d6
Just change the method to Delete on the last line...
- Willem VerwijsNov 15, 2018Copper Contributor
It has been 1 year since this last post and the article refers to exch 2010, niet O365. Any new tips or methods on how to achieve this?