Forum Discussion
Anonymous
Oct 13, 2017How to delete all calendar appointments booked by terminated users?
We have a Hybrid set up with o365 and we ahve around 150+ Meeting rooms. How to delete all calendar appointments booked by terminated users? Before deleting, we need to email out all attendees to ...
Kerry Loftus
Nov 21, 2018Copper Contributor
I just spent two days working with Microsoft on this, user has been deleted due to being disabled and placed in an OU that doesn't sync. Here is the command line:
Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery 'Kind:Meetings AND Organizer:EmailAddressOfExEmployee' -DeleteContent –Force
ToCR-Joe
Jan 08, 2019Copper Contributor
Could I ask for a little more information, we are experiencing the same issue, I ran the command in question but receive the following error:
The target mailbox or .pst file path is required.
+ CategoryInfo : InvalidArgument: (:) [], ArgumentException
+ FullyQualifiedErrorId : [Server=MAIL,RequestId=33b58e41-c74b-4db2-b552-c2e9ffe7489f,TimeStamp=1/8/2019 9:02:
18 PM] [FailureCategory=Cmdlet-ArgumentException] 8DBCE48A
+ PSComputerName : MAIL