$Mailboxes = Get-Mailbox -ResultSize unlimited
$Mailboxes | ForEach {Set-MailboxFolderPermission $_":\Calendar" -User Default -AccessRights Reviewer}
Note:
- Use different Set-MailboxFolderPermission cmdlets when using Outlook in different languages (English, Dutch etc).
Example cmdlet to use with Outlook Dutch client (calendar translates to agenda in dutch): Set-MailboxFolderPermission mailbox:\Agenda -User Default -AccessRights Reviewer - The Set-MailboxCalendarFolder cmdlet configures publishing or sharing settings on a calendar folder of a specified mailbox. So, this cmdlet should be used when configuring Internet Calendar sharing.
Looking for ages. First script that worked!
ReplyDeleteThis is excellent however is there anyway to run this on mailboxes that are located just in one particular database?
ReplyDelete$Mailboxes = Get-Mailbox -database db-name -ResultSize unlimited
DeleteDidn't work for me ... What does the -User Default do? Does it apply it to all Mailbox calendars?
ReplyDelete-User Default means default user on Calendar permissions tab (name: Default)
DeleteWhats a command to get all current calendar permissions for an audit purpose?
ReplyDelete