List Users from BookInPolicy on a room mailbox.
We can use below command to get the list of users from BookInPolicy on a resource mailbox.
Get-CalendarProcessing User@domain.com | select -ExpandProperty BookInPolicy | Get-Recipient | select PrimarySmtpAddress, RecipientType
If you have multiple Room Mailboxes to check, you can use below script.
Save all room mailbox in RoomMailbox.txt [One mailbox per line] and run the below command.
$RoomList = Get-Content C:\Temp\RoomMailbox.txt
Foreach ($room in $RoomList)
{
#$BookInPolicy = 0
$BookInPolicy = Get-CalendarProcessing $room | select -ExpandProperty BookInPolicy | Get-Recipient | select PrimarySmtpAddress, RecipientType
Write-Host "Room $room has below users"
$BookInPolicy
Write-Host " "
Write-Host "........"
}