Anthony K O365
asked on
Powershell Assistance--Exchange 2010 Calendar Access Permission
Greetings!
I am looking for the PS cmdlet that will give one user Editor rights to many calendars using a csv file:
Add-MailboxFolderPermissio n -identity < > -user < > -AccessRights Editor
Please assist.
Thank you.
I am looking for the PS cmdlet that will give one user Editor rights to many calendars using a csv file:
Add-MailboxFolderPermissio
Please assist.
Thank you.
ASKER
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?
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?
Something like this should work:
import-csv c:\file.csv | Add-MailboxFolderPermissio n :\Calendar -User user@domain.com -AccessRights Reviewer
Simon.
import-csv c:\file.csv | Add-MailboxFolderPermissio
Simon.
ASKER
Would this work?
Import-Csv "c:\List.csv" | ForEach-Object { Add-MailboxFolderPermissio n -identity $($_ +':\Calendar') -User John -AccessRights Editor}
Import-Csv "c:\List.csv" | ForEach-Object { Add-MailboxFolderPermissio
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Here is the PS script that worked for me:
Import-csv d:\file.csv
$ABC = import-csv
ForEach{Add-MailboxFolderP ermission $_":\Calendar" -User John -AccessRights PublishingEditor}
Import-csv d:\file.csv
$ABC = import-csv
ForEach{Add-MailboxFolderP
ASKER
Correction:
Here is the PS script that worked for me:
$ABC = import-csv D:\file.csv
ForEach{Add-MailboxFolderP ermission $_":\Calendar" -User John -AccessRights PublishingEditor}
Here is the PS script that worked for me:
$ABC = import-csv D:\file.csv
ForEach{Add-MailboxFolderP
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}
Awesome :)
- Rancy
- Rancy
ASKER
Excellent discussion!
Thanks!
Thanks!
- Rancy