Solved

Exchange 2010 add-mailboxfolderpermission powershell help

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
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…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

717 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