Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set the default permission for all user calendars
$calendars = Get-Mailbox -RecipientTypeDetails UserMailbox | Get-MailboxFolderStatistics | ? {$_.FolderType -eq "Calendar"} | select @{n="Identity"; e={$_.Identity.Replace("\",":\")}}
$calendars | % {Set-MailboxFolderPermission -Identity $_.Identity -User Default -AccessRights AvailabilityOnly}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment