Solved

How do you set calendar Permisions in Exchange 2010 from PowerShell

Posted on 2011-09-29
9
1,024 Views
Last Modified: 2012-05-12
Hi
I need to give one user the ability to review 10 other users calendar.

How do I do this via PowerShell?
0
Comment
Question by:cmiadmin
[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
  • 4
9 Comments
 
LVL 5

Expert Comment

by:PYThePorkpie
ID: 36814009
0
 
LVL 1

Author Comment

by:cmiadmin
ID: 36814056
Hi I have seen that article already.

I know there is a command for adding permisions to a mailbox so that another user can view the calendar on that mailbox.  I just don't know how to format it.
0
 
LVL 5

Expert Comment

by:PYThePorkpie
ID: 36814069
Sorry meant to add the following. if you get the mailboxes you want updated into a CSV file, then I would do it something like the following:
import-csv "c:\users.csv"| ForEach-Object {Add-MailboxFolderPermission $_":\Calendar" -User user.name@domain.com -AccessRights Reviewer}
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 1

Author Comment

by:cmiadmin
ID: 36814130
Thank you. That looks better.

Just to clarify:

 -User user.name@domain.com -AccessRights Reviewer}

Is the username of the person who want to be able to review the caleandars.
0
 
LVL 5

Accepted Solution

by:
PYThePorkpie earned 500 total points
ID: 36814157
That's correct and the csv file contains the mailboxes you want that user to be added to.
0
 
LVL 1

Author Closing Comment

by:cmiadmin
ID: 36814161
Thank you for your help.
0
 
LVL 1

Author Comment

by:cmiadmin
ID: 36814506
Hi
I have listed my users users in the csv file.
they are all listed under colum 1.

Juilian Bott
Kate Adams
Kay Bott
Sam Smith
etc

howver when I run import-csv "c:\users.csv"| ForEach-Object {Add-MailboxFolderPermission $_":\Calendar" -User stephen.cox@nsf-cmi.com -AccessRights Reviewer}

I get the following error for each user.  What have I done wrong?


The specified mailbox "@{Julian.Bott@nsf-cmicertification.com=Kate.Adams@nsf-cmicertification.com}" doesn't exist.
    + CategoryInfo          : NotSpecified: (0:Int32) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 98298CDD,Microsoft.Exchange.Management.StoreTasks.AddMailboxFolderPermission

0
 
LVL 5

Expert Comment

by:PYThePorkpie
ID: 36815438
The CSV should be comma seperated but it looks like you have the equals sign as a seperator so its picking an invalid string. You may want to open the file you created in Excel and make sure each user is on a separate row and then save as a csv. FYI I created the csv by runnning get-mailbox|export-csv "c:\users.csv".
0
 
LVL 1

Author Comment

by:cmiadmin
ID: 36815537
OK

Thank you very much.

Regards

Kevan
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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a Contact 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 Recipients >> Contact ta…
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
Course of the Month9 days, 13 hours left to enroll

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