Solved

How do you set calendar Permisions in Exchange 2010 from PowerShell

Posted on 2011-09-29
9
1,016 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
  • 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
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

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
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…

840 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