Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PowerShell Exchange 2010

Posted on 2014-02-19
3
Medium Priority
?
182 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 2000 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

824 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