Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PowerShell Exchange 2010

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
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…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

705 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