Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exchange 2010 add-mailboxfolderpermission powershell help

Posted on 2011-02-17
3
Medium Priority
?
1,102 Views
Last Modified: 2012-06-22
Hello,  

I need to assign the "limiteddetails" permission to a large number of users.

I can assign individually with:

add-mailboxfolderpermission -identity mailboxowner@domain.com:\Calendar -User "Name Of the Guy that gets the permission" -accessrights LimitedDetails

The problem is, I need to assign this to large numbers of users and doing this line by line is not an option.

Is there either a gui way of doing this?

Or can someone that is good at powershell tell me how to automate this?    I would love to be able to have a text file with a list of names, or something.

thanks
0
Comment
Question by:BBQSTEAK
[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 12

Accepted Solution

by:
prashanthd earned 2000 total points
ID: 34923930
Hi

Please try this code
$userlist = Get-Content C:\userlist.txt

foreach ($user in $userlist){
add-mailboxfolderpermission -identity mailboxowner@domain.com:\Calendar -User $user -accessrights LimitedDetails
}

Open in new window

0
 
LVL 12

Expert Comment

by:prashanthd
ID: 34941146
have you tried the above code?
0
 
LVL 1

Author Comment

by:BBQSTEAK
ID: 35002608
Auh! just saw your answer!  I figured this out with google,,  wish i looked at your answer sooner thank you!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
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!
This video discusses moving either the default database or any database to a new volume.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

604 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