Solved

Default sharing policies in Exchange 2013

Posted on 2016-08-25
4
123 Views
Last Modified: 2016-09-13
I'd like to set default calendar permissions to 'reviewer' for all new mailboxes created in Exchange 2013.  I know I can change existing mailboxes but how can the policy be changes to set this permission on all newly created mailboxes?
0
Comment
Question by:James Clark
[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
  • 4
4 Comments
 
LVL 18

Assisted Solution

by:xtermie
xtermie earned 500 total points (awarded by participants)
ID: 41770093
Here is a script that sets calendar permission - you can adjust to your case
https://gallery.technet.microsoft.com/ScriptCenter/19b98a56-42aa-4695-b07c-335d8322b64e/
0
 
LVL 18

Assisted Solution

by:xtermie
xtermie earned 500 total points (awarded by participants)
ID: 41770100
For the second part try this
Powershell command for setting 'LimitedDetails' as Default for all user mailboxes:
Get-ADGroupMember -Identity "Company" | ForEach-Object { 
    $mb = Get-Mailbox -Identity $_.distinguishedName
    set-MailboxFolderPermission -Identity "${mb}:\Calendar" -User Default -AccessRights LimitedDetails
}

Open in new window

IF you want default access to be 'Reviewer' simply replace the term "LimitedDetails" at the end of line 3 in the command above.

 To verify the setting for all users:
$Mailboxes = Get-Mailbox
foreach ($mailbox in $Mailboxes) {Get-MailboxFolderPermission -Identity ($mailbox.UserPrincipalName + ":\Calendar") |

Open in new window

1
 
LVL 18

Accepted Solution

by:
xtermie earned 500 total points (awarded by participants)
ID: 41770104
The above link has the following script that does exactly what you want:
http://gallery.technet.microsoft.com/ScriptCenter/19b98a56-42aa-4695-b07c-335d8322b64e/
<# 
 
 NAME: Set-CalendarPermissions.ps1 
 
 AUTHOR: Jan Egil Ring 
 EMAIL: jan.egil.ring@powershell.no 
 
 COMMENT: Script to set calendar-permission for mailboxes in Exchange Server 2010. 
          For a list of valid AccessRights, see http://technet.microsoft.com/en-us/library/ff522363.aspx 
          More information: http://blog.powershell.no/2010/09/20/managing-calendar-permissions-in-exchange-server-2010 
 
 You have a royalty-free right to use, modify, reproduce, and 
 distribute this script file in any way you find useful, provided that 
 you agree that the creator, owner above has no warranty, obligations, 
 or liability for such use. 
 
 VERSION HISTORY: 
 1.0 19.09.2010 - Initial release 
 
#> 
 
#requires -version 2 
 
#Load Exchange Server 2010 Management Shell if not loaded. You may delete/comment out this step if you are running the script from the Exchange Management Shell 
if (-not (Get-PSSnapin | Where-Object {$_.Name -like "Microsoft.Exchange.Management.PowerShell.E2010"})){ 
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 
} 
 
#Custom variables 
$mailboxes = Get-Mailbox -Database "Mailbox Database A" 
$AccessRights = "Reviewer" 
 
#Loop through all mailboxes 
foreach ($mailbox in $mailboxes) { 
 
#Retrieve name of the user`s calendar 
$calendar = (($mailbox.SamAccountName)+ ":\" + (Get-MailboxFolderStatistics -Identity $mailbox.SamAccountName -FolderScope Calendar | Select-Object -First 1).Name) 
 
#Check if calendar-permission for user "Default" is set to the default permission of "AvailabilityOnly" 
    if (((Get-MailboxFolderPermission $calendar  | Where-Object {$_.User -like "Default"}).AccessRights) -like "AvailabilityOnly" ) { 
 
    Write-Host "Updating calendar permission for $mailbox..." -ForegroundColor Yellow 
 
    #Set calendar-permission for user "Default" to value defined in variable $AccessRights 
    Set-MailboxFolderPermission -User "Default" -AccessRights $AccessRights -Identity $calendar 
    } 
}

Open in new window

1
 
LVL 18

Expert Comment

by:xtermie
ID: 41795685
good comments and recommendations provided
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

Suggested Solutions

This article explains how to install and use the NTBackup utility that comes with Windows Server.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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