Solved

full mailbox control exchange management shell / powershell

Posted on 2014-10-16
4
182 Views
Last Modified: 2014-10-16
Hi,

This example gives mailbox 2 full control over mailbox 1.

Add-MailboxPermission -Identity mailbox1 -User mailbox2 -AccessRight FullAccess -InheritanceType All -Automapping $false

I have a csv file with all the users who should be given full mailbox control over mailbox1

So in a loop, i would like...

Add-MailboxPermission -Identity mailbox1 -User [variable] -AccessRight FullAccess -InheritanceType All -Automapping $false
0
Comment
Question by:cmatchett
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Joshua Grantom earned 500 total points
ID: 40384694
$users = Import-CSV C:\File.csv
foreach ($user in $users) {
Add-MailboxPermission -Identity mailbox1 -User $user.ColumnHeader -AccessRight FullAccess -InheritanceType All -Automapping $false 
}

Open in new window


This should work, just replace "ColumnHeader" with the the name of the Column in your CSV (ex. Username) if there isnt one, then delete ".ColumnHeader"
0
 

Author Comment

by:cmatchett
ID: 40385597
fantastic work !
0
 

Author Closing Comment

by:cmatchett
ID: 40385600
thanks !!
0
 
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40385611
You're welcome!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question