Grant calendar access in Exchange Server via Power Shell

Exchange Server calendar’s permissions can be managed using  Power Shell and the *-MailboxFolderPermission cmdlets. These cmdlets can be used to manage permissions on any mailbox folder.

We got 4 *-MailboxFolderPermission cmdlets in Exchange Server:

Today we focused on Add-MailboxFolderPermission examples:

In case we wanted to grant John “Reviewer” permissions to Lucy’s calendar, to do this we can run the following:

Add-MailboxFolderPermission -Identity Lucy@sysnewbie.corp:\Calendar -User John@sysnewbie.corp -AccessRights Reviewer

In case we wanted to grant John and Mike “Reviewer” permissions to Lucy’s calendar we can use the following script:

[array]$Users = @(“John”,”Mike”)
foreach ($User in $Users)
{
Add-MailboxFolderPermission Lucy@sysnewbie.corp:\Calendar -User $User -AccessRight Reviewer
}

In case we wanted to grant John and Mike “Reviewer” permissions on Lucy and Paul calendars we can use the following script:

[array]$Users = @(“John”,”Mike”)
foreach ($User in $Users)
{
Add-MailboxFolderPermission Lucy@sysnewbie.corp:\Calendar -User $User -AccessRight Reviewer
Add-MailboxFolderPermission Paul@sysnewbie.corp:\Calendar -User $User -AccessRight Reviewer
}

That’s all, see you soon!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s