Solved

Exchange 2010:  Set Calendar Permissions to everybody using Powershell

Posted on 2015-02-05
1
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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