Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

full mailbox control exchange management shell / powershell

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
A procedure for exporting installed hotfix details of remote computers using powershell
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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