Exchange – add/remove access to all calendars by ‘Cutom Attribute’

add-MailboxFolderPermission -Identity  user1:\Calendar -User user2 -AccessRights AvailabilityOnly

Exchange:  Access to all Calendars for Alice

Get-mailbox -Filter {(CustomAttribute1 -eq “Employee”)} | ForEach-Object {Add-MailboxFolderPermission $_”:\Calendar” -User alice.cooper -AccessRights Reviewer}

-confirm:$false    —  No prompter

Remove Alice’s calendar permissions from all calendars :

$Mailboxes = Get-Mailbox
$Mailboxes | ForEach-Object {remove-MailboxFolderPermission $_”:\Calendar” -User alice.cooper} 

 

This entry was posted in Exchange. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *