Exchange - add calendar permission for user manager

Hello, I need a PowerShell command or script that will get a members from a Distribution Group in Exchange 2010, and assign a full calendar permission for that user manager (Ad attribute=manager).

For example, user = AAA have mananager DDD - add user DDD full calendar permission to user AAA

user = BBB have manager CCC - add user CCC full calendar permission to user BBB

Thanks a lot for help.

June 20th, 2015 4:51pm

May I suggest you learn PowerShell and develop this yourself?  This is a very helpful book:

http://www.amazon.com/Windows-PowerShell-Action-Second-Payette/dp/1935182137/ref=sr_1_1?ie=UTF8&qid=1434863986&sr=8-1&keywords=powershell+n+action

Free Windows Admin Tool Kit Click here and download it now
June 21st, 2015 1:22am

Hi,

To get all members in Distribution Group, we can use Get-DistributionGroupMember cmdlet.

To get the manager of mailbox, we can use Get-User cmdlet and filter out the valve of manager.

To assign full calendar permission, we can use Add-MailboxFolderPermission cmdlet.

Try something like this

$allmailbox = Get-DistributionGroupMember TestGroup1 | Get-User 

Foreach ($Mailbox in $allmailbox)

{Add-mailboxfolderpermission identity ($Mailbox.name+':\calendar) user $Mailbox.manager -AccessRights Reviewer}

If user has no manager or users calendar had permission entry, you will receive errors and warnings.

Best Re

June 23rd, 2015 2:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics