Solved

PowerShell Exchange 2010

Posted on 2014-02-19
3
170 Views
Last Modified: 2014-02-20
Hello,

I am trying to set up a script that would allow me to add one permission group to multipal mail boxes.


Add-MailboxPermission "Mailbox" -User "Permission Group" -AccessRights FullAccess

I am not sure how to create a veraiable for the feild mailbox
0
Comment
Question by:SEHC
  • 2
3 Comments
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39870638
Hello,

You first need to identify the mailboxes you want to assign this permission on. You can do this with powershell if there is something unique to these mailbox, such as they are all in the same OU. If you can't identify them with powershell, you will need to compose a list in a CSV file then pipe that list into the command. For example:

import-csv "C:\mailboxes.csv" | % {  Add-MailboxPermission $_.mailbox -User "Permission Group" -AccessRights FullAccess }

-JJ
0
 
LVL 4

Author Comment

by:SEHC
ID: 39870643
How does the CSV look when it is set up? can you send me a screen shot
0
 
LVL 37

Accepted Solution

by:
Jamie McKillop earned 500 total points
ID: 39870668
The first line is you header and each line after that is a record. For example:

Mailbox
jsmith
fjohnson
mcarr

In the example above you just have one field. One with multiple fields would look like:

Mailbox,SMTP
jsmith,jsmith@domain.com
fjohnson,fjohnson@domain.com
mcarr,mcarr@domain.com

-JJ
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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

828 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