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-MailboxFolderPermissio n $_":\Calendar" -User Default -AccessRights AvailabilityOnly
Remove-MailboxFolderPermis sion $_":\Calendar" -User "MYDOMAIN\MYGROUP" -Confirm:$False
Add-MailboxFolderPermissio n $_":\Calendar" -User "MYDOMAIN\MYGROUP" -AccessRights Reviewer
}
$users = Get-mailbox
$users | ForEach-Object {
Set-MailboxFolderPermissio
Remove-MailboxFolderPermis
Add-MailboxFolderPermissio
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER