Solved

PowerShell Exchange 2010

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article will help you understand what HashTables are and how to use them in PowerShell.
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 >>…
In this video we show how to create a Contact 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 >> Contact ta…

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

18 Experts available now in Live!

Get 1:1 Help Now