Solved

PowerShell Exchange 2010

Posted on 2014-02-19
3
169 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Distribution Group 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 Recipients >>…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

776 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