Assign Permissions to all mailboxes using Mail Enabled Security Group.

Hi,

Add all users that need the following rights to a Mail Enabled Security Group.

Then add permissions to calendars with this script:

$allmailbox =
Get-Mailbox -Resultsize
Unlimited -Filter
{RecipientTypeDetails -eq
‘usermailbox’}
Foreach ($Mailbox
in $allmailbox)
{
   
$path =
$Mailbox.alias
+ “:”
+ (Get-MailboxFolderStatistics
$Mailbox.alias
| Where-Object
{ $_.Foldertype
-eq “Calendar”
} | Select-Object
-First 1).Name
   
add-mailboxfolderpermission –identity ($path)
–user DefaultCalendarShare@domain.fi
–Accessrights editor

}
Now everybody is happy, happy, joy, joy.
Author: Harri Jaakkonen

Leave a Reply

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