Get Default Mailbox Calendar Permission

Introduction

This script will get default Mailbox Calendar Permission.

Scenarios

This script is to help Exchange Admins to get default Mailbox Calendar Permission via PowerShell.

Script

This script contains one advanced function Get-OSCDefaultMailboxCalendarPermission, you can use this script in the following ways:

Step1: Run the script in the Exchange Management Shell, type the one command: Import-Module <Script Path> at the prompt.

For example, type Import-Module C:\Script\GetDefaultMailboxCalendarPermission.psm1

Here are some code snippets for your references.

PowerShell
Edit|Remove
if($mbx){
    #For each mailboxes
    Foreach($mbx in $mbxs){
        $Name = $mbx.DisplayName
        $Alias = $mbx.Alias
        Get-MailboxFolderPermission "$($Alias):\calendar" | Where {$_.User.UserType -eq 'Default'} | Select @{e={$Name}; l='Name'},@{e={"$($_.User)"}; l='User'},AccessRights
    }
}

Examples

Example 1: Get default calendar permission for all mailboxes in Exchange environment.
Command: Get-OSCDefaultMailboxCalendarPermission
Screenshot:

Example 2: Get default calendar permission for Mailboxes "Test1","Test2".
Command: Get-OSCDefaultMailboxCalendarPermission -Mailbox "Test1","Test2"
Screenshot:
 

Prerequisite

Exchange 2010 and above Exchange Version
English Version only
PowerShell 2.0

 

Microsoft All-In-One Script Framework is an automation script sample library for IT Professionals. The key value that All-In-One Script Framework is trying to deliver is Scenario-Focused Script Samples driven by IT Pros' real-world pains and needs. The team is monitoring all TechNet forums, IT Pros' support calls to Microsoft, and script requests submitted to TechNet Script Repository. We collect frequently asked IT scenarios, and create script samples to automate the tasks and save some time for IT Pros. The team of All-In-One Script Framework sincerely hope that these customer-driven automation script samples can help our IT community in this script-centric move.