Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do you set calendar Permisions in Exchange 2010 from PowerShell

Posted on 2011-09-29
9
Medium Priority
?
1,028 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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
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 2000 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

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.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

722 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