Created
August 8, 2020 10:57
-
-
Save michevnew/8a3f27257bffc1992df6280d7f13ae34 to your computer and use it in GitHub Desktop.
Set the default permission for all user calendars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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