Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Exchange 2010:  Set Calendar Permissions to everybody using Powershell

Posted on 2015-02-05
1
Medium Priority
?
212 Views
Last Modified: 2015-02-05
The management wants to have one set of permissions on everybodys Outlook calendar.  The permissions have to look like this for everyone:

KK-Exchange-Permissions.jpg
How can I do this?
0
Comment
Question by:whenz
1 Comment
 
LVL 24

Accepted Solution

by:
VB ITS earned 2000 total points
ID: 40590808
This should do it:

$Mailboxes = Get-Mailbox -ResultSize Unlimited

ForEach ($Mailbox in $Mailboxes) {
   Remove-MailboxFolderPermission -Identity ($Mailbox.sAMAccountName+':\Calendar’) -User Default -ErrorAction SilentlyContinue
   Remove-MailboxFolderPermission -Identity ($Mailbox.sAMAccountName+':\Calendar’) -User "Z-Verteiler GL" -ErrorAction SilentlyContinue

   Add-MailboxFolderPermission -Identity ($Mailbox.sAMAccountName+':\Calendar’) -User Default -AccessRights AvailabilityOnly
   Add-MailboxFolderPermission -Identity ($Mailbox.sAMAccountName+':\Calendar’) -User "Z-Verteiler GL" -AccessRights Author

   Set-MailboxFolderPermission -Identity ($Mailbox.sAMAccountName+':\Calendar’) -User Anonymous -AccessRights None
}

Open in new window

The reason we don't remove the Anonymous permissions is simply because you can't - Exchange doesn't allow you to remove the Anonymous user through PowerShell (at least my environment wouldn't).
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

782 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