Mar 02 2022 05:32 PM
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-CalendarProcessing -AllBookInPolicy:$false -AllRequestInPolicy:$false -BookInPolicy "Email address removed","Email address removed","Email address removed"
But when i am running the command to add/remove users it over write the existing policy. I tried the below and it did not work
Set-CalendarProcessing -Identity "Room9" -BookInPolicy "Email address removed", "Email address removed"
Any help would be appreciated.
Thanks,
Atul
Mar 03 2022 02:32 AM
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
Mar 03 2022 05:01 AM
Mar 03 2022 05:02 AM
Mar 05 2022 01:42 AM - edited Mar 10 2022 05:11 AM
Did this work for you?
Mar 29 2022 02:34 PM
SolutionMar 29 2022 02:34 PM
Solution