Solved

Exchange 2010 add-mailboxfolderpermission powershell help

Posted on 2011-02-17
3
1,057 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
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
prashanthd earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this video we show how to create a mailbox database 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 Servers >> Data…
To show how to generate a certificate request 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 Servers >> Certificates…

746 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

13 Experts available now in Live!

Get 1:1 Help Now