• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • Last Modified:

Granting permissions to outlook calendars

I am trying to grant a scurity group on the network access to everyones calendars so they can write appointments directly to the other users calendars.  Will the code below perform that function for me?  Is there a better way to do it?

$users = Get-mailbox
$users | ForEach-Object {
Set-MailboxFolderPermission $_":\Calendar" -User Default -AccessRights AvailabilityOnly
Remove-MailboxFolderPermission $_":\Calendar" -User "MYDOMAIN\MYGROUP" -Confirm:$False
Add-MailboxFolderPermission $_":\Calendar" -User "MYDOMAIN\MYGROUP" -AccessRights Reviewer
}

0
hamel01
Asked:
hamel01
1 Solution
 
Rajith EnchiparambilOffice 365 & Exchange ArchitectCommented:
Script looks ok.

Why are you removing the "MYDOMAIN\MYGROUP" and adding it again?
0
 
hamel01Author Commented:
Not sure.  This is a script that I found.  Couldn't really figure out why it was being removed and added.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now