Bulk add full access permissions for all mailboxes to a user or group

Here is a couple of commands to add full access permissions for all or specific mailboxes to a user or group. The first command adds permissions for all mailboxes in a specific database:

Get-MailboxDatabase -identity "Mailbox database where mailboxes reside" | Add-ADPermission -user "User or group to grant permission" -AccessRights FullAccess

The second command adds permissions to all users in all databases:

Get-MailboxDatabase | Add-ADPermission -user "User or group to grant permission" -AccessRights FullAccess

Or for example if you want to add the permission for the mailboxes with users in a specific OU, use the following command:

Get-Mailbox -OrganizationlUnit "OU where the users reside" | Add-MailboxPermssion -User "User or group to grant permission" -AccessRights FullAccess

Note: You will only change the existing mailboxes, you will have to run the commands again after adding new mailboxes.

Advertisements

One Response to Bulk add full access permissions for all mailboxes to a user or group

  1. nigel says:

    Hello,

    I would really appreciate some help with this. I’m not versed in PowerShell to this level. Before SP1 on exchange 2010, the AD attribute was not set to automatically open mailboxes in outlook. I’ve recently moved this exchange server to new fully serviced packed virtualised server. Any new users I grant full access to other mailboxes load automatically.

    Is there a way to export the current full access permissions for all users (about 500) and then clear them and then import again to set the AD attribute?

    This would be a massive time saver.

    Many thanks.

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

%d bloggers like this: