Forum Discussion
tyagia2ul
Mar 03, 2022Copper Contributor
How to Add / Remove user in existing BookInPolicy In O365 through PowerShell
Hello , I have a Book In Policy for meeting rooms and i need to add and remove users to the existing policy. I have created the policy using the below command Get-Mailbox BoardRoom | Set-Cale...
- Mar 29, 2022Please mark my answer as solution to mark it as solved
Mar 03, 2022
You're replacing it instead of adding it, this is a nice function to add users
http://serverocean3.blogspot.com/2015/02/add-user-in-bookinpolicy.html
function Add-CalendarResourceDelegate {
Param(
$RoomName
, $newDelegate
)
$resourceDelegates = (Get-CalendarProcessing -Identity $RoomName).ResourceDelegates
$resourceDelegates += $newDelegate
Set-CalendarProcessing -Identity $RoomName -ResourceDelegates $resourceDelegates
}
CMD syntax:
Add-CalendarResourceDelegate -Identity $Roomname "Email address removed" -newDelegate UserID9
To Remove All Users from ResourceDelegate:
Set-CalendarProcessing -Identity "Email address removed" -ResourceDelegates $null
- tyagia2ulMar 03, 2022Copper Contributor
- Mar 03, 2022Let us know the results 🙂
- Mar 05, 2022
Did this work for you?
- Mar 29, 2022Please mark my answer as solution to mark it as solved