• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1117
  • Last Modified:

Exchange 2010 add-mailboxfolderpermission powershell help

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
BBQSTEAK
Asked:
BBQSTEAK
  • 2
1 Solution
 
prashanthdCommented:
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
 
prashanthdCommented:
have you tried the above code?
0
 
BBQSTEAKAuthor Commented:
Auh! just saw your answer!  I figured this out with google,,  wish i looked at your answer sooner thank you!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now