Link to home
Start Free TrialLog in
Avatar of hamel01
hamel01

asked on

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
}

ASKER CERTIFIED SOLUTION
Avatar of Rajith Enchiparambil
Rajith Enchiparambil
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hamel01
hamel01

ASKER

Not sure.  This is a script that I found.  Couldn't really figure out why it was being removed and added.