Solved

full mailbox control exchange management shell / powershell

Posted on 2014-10-16
4
174 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now