Solved

Powershell Assistance--Exchange 2010 Calendar Access Permission

Posted on 2013-01-14
11
927 Views
Last Modified: 2013-01-14
Greetings!

I am looking for the PS cmdlet that will give one user Editor rights to many calendars using a csv file:

  Add-MailboxFolderPermission -identity <  > -user <  > -AccessRights Editor

Please assist.

Thank you.
0
Comment
Question by:K Anthony O365
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38774273
Get-Content "CSV location" | Add-MailboxFolderPermission -user <  > -AccessRights Editor

- Rancy
0
 

Author Comment

by:K Anthony O365
ID: 38774350
Rancy,

I need the -identity parameter to equal the contents of the fle with a focus on the Calendar only such as  :\Calendar

Thanks for your quick response!

P.S. Also the Get-Content cmdlet is grabbing the Name column. Would Import-csv work also?
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 38774435
Something like this should work:

import-csv c:\file.csv | Add-MailboxFolderPermission :\Calendar -User user@domain.com -AccessRights Reviewer

Simon.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:K Anthony O365
ID: 38774441
Would this work?

Import-Csv "c:\List.csv" | ForEach-Object { Add-MailboxFolderPermission -identity $($_ +':\Calendar') -User John -AccessRights Editor}
0
 
LVL 40

Accepted Solution

by:
Subsun earned 250 total points
ID: 38774447
Try..
Import-Csv c:\input.csv | % {
$mailbox = Get-mailbox $_.Name
Set-mailboxfolderpermission –identity ($mailbox.alias+’:\calendar’) –user User –Accessrights Editor}

Open in new window

Csv format should be
Name
User1
User2
User3

Open in new window

0
 
LVL 52

Assisted Solution

by:Manpreet SIngh Khatra
Manpreet SIngh Khatra earned 250 total points
ID: 38774450
Yes Import-csv would work as well ... i would say if try with placing the Identity as UserName:\Calendar in the CSV and check

- Rancy
0
 

Author Comment

by:K Anthony O365
ID: 38774484
Here is the PS script that worked for me:

Import-csv d:\file.csv

$ABC = import-csv

ForEach{Add-MailboxFolderPermission $_":\Calendar" -User John -AccessRights PublishingEditor}
0
 

Author Comment

by:K Anthony O365
ID: 38774494
Correction:

Here is the PS script that worked for me:

$ABC = import-csv D:\file.csv

ForEach{Add-MailboxFolderPermission $_":\Calendar" -User John -AccessRights PublishingEditor}
0
 
LVL 40

Expert Comment

by:Subsun
ID: 38774517
If you are saving import-csv D:\file.csv to a var then it should be something like..

$ABC = import-csv D:\file.csv
ForEach ($a in $ABC) {Add-MailboxFolderPermission $A.Name":\Calendar" -User John -AccessRights PublishingEditor} 

Open in new window

0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38774717
Awesome :)

- Rancy
0
 

Author Closing Comment

by:K Anthony O365
ID: 38775147
Excellent discussion!

Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A brief introduction to what I consider to be the best editor for PowerShell.
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
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…

685 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