Powershell of the week #4 – Manage Resource Delegates

Guys, continuing the script series of the week, this is the scenario I recently met on a project:

You must add / remove Resource delegates, but nothing can affect access to the calendar, ie rules that already exist (automatic processing, BookInPolicy, etc. cannot be affected).

Unfortunately Microsoft does not yet allow this kind of maneuvering via the graphical interface without changing any more meeting room attributes.

Therefore, I want to share the role you play in addressing this need.

Important
All codes must be executed after remotely connecting to Exchange. To better understand how to connect to Exchange Online, see the following documentation: https://docs.microsoft.com/pt-br/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell?view=exchange-ps

Load function into powershell

After connecting to exchange online, copy and paste the following commands, as appropriate:

Add Resource Delegate

Remove Resource Delegate

For these functions if in doubt you can use the command

There you will have information about the syntax, use cases, etc.

Finally, if you are interested in running the bulk command, you should do the following

To run in bulk, simply create a CSV file of the following format:

EmailAddress
email1@domain.com
email2@domain.com
email3@domain.com

Save with CSV (Comma Separated File) format and store in an easy place to run

After saving the file run the following command:

Add Resource Delegate in Bulk

Remove Resource Delegate in Bulk

In both situations:

$Path is the path to the CSV file (I recommend saving as users.csv because then just do ctrl + c, ctrl + v anyway).

$ users Imports the CSV file at the specified path.

$ roomName You must enter RoomMailbox information in quotation marks.

Conclusion

We achieved one more goal by manipulating the resource delegates in a meeting room and preventing other scheduling features from being affected, as happens via the graphical interface.

See you in the next tip. To the next!

Carlos Oliveira

Carlos Oliveira, 25, founder of CloudSquad, a Cloud Computing content sharing blog where he brings tips and tricks about Office 365 and Azure, and is a hub for bringing practical solutions to complex problems.

Carlos Oliveira
en_US
pt_BR en_US