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!

Yorumlar

Bu blogdaki popüler yayınlar

Pegging angel laurie

Perri audrey dazy