Solved

Exchange 2010:  Set Calendar Permissions to everybody using Powershell

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
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…
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 …

758 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

19 Experts available now in Live!

Get 1:1 Help Now