Solved

full mailbox control exchange management shell / powershell

Posted on 2014-10-16
4
192 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
[X]
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
  • 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

635 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