Print Friendly
test
Categories Tags 2 Comments Author Related Posts
  • No Related Posts

Featured Image

Attachments

None at this time

Show Extras

PowerShell is a great tool for managing Exchange Mailboxes. There are a lot of things it can do to help simplify editing a large number of users in a matter of minutes. This particular post will be a collection of ways you can manage users’ calendar permissions. For a list and description of the different permission levels see here.

Adding a single user to all users of a Distribution or Security Group

Scenario: Your client or boss asks you to give a single user the ability to review everyone’s calendar in one of the offices.

Assumptions: Your users belong to a distribution list or security group that is location based. For example all New York users belong to a DL-NY and all San Francisco users to DL-SF, etc. For this example we will assume that the user will need access to all SF users’ calendar.

Description: Because PowerShell can only process one request at a time, we need to create some variables to represent the user objects of the DL and then another one to represent the mailbox of that specific user. Make sure to hit return after each line.

  1. $gp = $(Get-Group “Name of Group”).Identity.DistinguishedName
  2. $mb = Get-Mailbox -Filter “Memberofgroup -eq ‘$gp'”
  3. $mb | Foreach-Object {Add-MailboxFolderPermission $_”:\Calendar” -User user_email@domain.com -AccessRights Reviewer}

If you want to be thorough you can re-run the above but use “Set-MailboxFolderPermission” instead of the “Add-“. This will adjust the permissions on any calendar that the user already had access to. You will know if a user was already added to a mailbox because Powershell will return an error for that mailbox.


 

Add a single user to everyone’s calendar

Scenario: Your client or boss asks you to give a single user the ability to review everyone’s calendar.

Assumptions: none

Description: This is very similar to the above script except we don’t need to filter by DL. We can just add the user to every mailbox.

Again, you might want to run this one after to make sure it takes care of any permissions that were already there


Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*


2 thoughts on “Bulk Add Calendar Permissions with PowerShell

  1. Reply Monthy September 18, 2015 at 1:29 am

    Hey thanks. Nice Oneliner for adding a single user to all calendars.
    Ralf

  2. Reply Chiro January 26, 2016 at 1:52 pm

    Thank you, this worked perfect!

Copyright © 2013 DannyEckes.com. All rights reserved. | Site design by Daniel J. Eckes | Privacy