Solved

Exchange 2010:  Set Calendar Permissions to everybody using Powershell

Posted on 2015-02-05
1
130 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 500 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
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 transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now