Solved

Exchange 2010 add-mailboxfolderpermission powershell help

Posted on 2011-02-17
3
1,064 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…
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…

813 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