Solved

Exchange 2010:  Set Calendar Permissions to everybody using Powershell

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

Is Your AD Toolbox Looking More Like a Toybox?

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 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