Solved

Powershell Assistance--Exchange 2010 Calendar Access Permission

Posted on 2013-01-14
11
936 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
[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
  • 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

Does Powershell have you tied up in knots?

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

Question has a verified solution.

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

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
In this video we show how to create an Address List 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 Organization >> Ad…
In this video we show how to create an Accepted Domain 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 >> Ac…
Suggested Courses

623 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