Add or Remove Bulk permissions to Exchange mailboxes.

Lets see How to Change Calendar Permissions in Bulk . To Restrict Free/busy or Allow Free/busy

How to Get Calendar Permissions For a Specific Mailbox ?

Default Calendar permissions of a Mailbox

Get-MailboxFolderPermission –Identity “EmailAddress”:calendar |fl

image

How to Change (Allow/Restrict) Calendar Permission for a Specific Mailbox ?

To Allow Free/busy

Set-MailboxFolderPermission –Identity “EmailAddress”:calendar -User Default -AccessRights AvailabilityOnly

To Restrict Free/busy

Set-MailboxFolderPermission –Identity “EmailAddress”:calendar -User Default -AccessRights None

image

How to Change Calendar Permission in Bulk ?

To Allow Free/busy for all Mailboxes in the Organization

$allmailbox = Get-Mailbox -Resultsize Unlimited

Foreach ($Mailbox in $allmailbox)

{Set-mailboxfolderpermission –identity ($Mailbox.alias+’:calendar’) –user Default –Accessrights AvailabilityOnly}

To Restrict Free/busy for all Mailboxes in the Organization

$allmailbox = Get-Mailbox -Resultsize Unlimited

Foreach ($Mailbox in $allmailbox)

{Set-mailboxfolderpermission –identity ($Mailbox.alias+’:calendar’) –user Default –Accessrights None}

Note : Copy the Code into Notepad . Save As  .ps1 file and Locate the File in Exchange management Shell to execute it

How to Add a Calendar Permission Over a Maibox ?

Add-MailboxFolderPermission god@domain.com:calendar -User Calendar-Admins -AccessRights reviewer

Note : You can Create a Universal Security Group – Mail Enable it – And You can add it

So that all the members of the security group and view this calendar

image

To Add a User or Security Group in Bulk over all the mailboxes in the Organization

$allmailbox = Get-Mailbox -Resultsize Unlimited

Foreach ($Mailbox in $allmailbox)

{Add-mailboxfolderpermission –identity ($Mailbox.alias+’:calendar’) –user Calendar-Admins –Accessrights Reviewer}

To Remove a User or Security Group from all the mailboxes in the Organization

$allmailbox = Get-Mailbox -Resultsize Unlimited

Foreach ($Mailbox in $allmailbox)

{remove-mailboxfolderpermission –identity ($Mailbox.alias+’:calendar’) –user Calendar-Admins } 

Source: http://careexchange.in/working-with-calendar-permissions-in-bulk-on-exchange-2010-sp2/

Author: Harri Jaakkonen

Leave a Reply

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