Problem:
Client wanted to change every user’s calendar to review only.
Solution:
- Connect-ExchangeOnline -UserPrincipalName navin@contoso.com
- $users = Get-Mailbox -Resultsize Unlimited
- foreach ($user in $users) { Write-Host -ForegroundColor green Setting permission for $($user.alias)… Set-MailboxFolderPermission -Identity $($user.alias):\calendar -User Default -AccessRights Reviewer }
Please note that this has to be run every time as it changes the current list of users rather than modify the default behaviour.