Remove room resource from future meetings using EXO V2

Jeff Burgess 1 Reputation point
2022-01-10T19:20:37.68+00:00

We are using EXO V2 to create Exchange "workspace" room resources using an external list of rooms. As room use policy changes, some of those spaces may be marked as non-reservable. When this happens, the room will disappear from the external list of rooms and we need to remove it from Exchange.

We ALSO need to clean up existing (future) meetings where the room was used as a resource. It would be a major inconvenience if staff showed up to use a room that was no longer available for a meeting. Ideally, Exchange would also notify the creator of the meeting that the room resource has been removed and they must find another place to meet.

We are having trouble locating the right blend of EXO V2 cmdlets to achieve this. Any ideas?

Exchange | Exchange Server | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,446 Reputation points
    2022-01-11T22:33:01.363+00:00

    For deleting future meeting there is the remove-calendarevents cmdlet https://learn.microsoft.com/en-us/powershell/module/exchange/remove-calendarevents?view=exchange-ps if that doesn't do what you need then you would need to use either the Graph API or EWS to access the calendars directly and do whatever custom logic you want.


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.