by

Mailbox Automapping ahead and reverse map utilizing Autodiscover and PowerShell

Mailbox Automapping ahead and reverse map utilizing Autodiscover and PowerShell Auto-mapping was a characteristic that was launched in Trade 2010, the place while you added Mailbox entry permission by way of Add-MailboxPermission, Outlook would mechanically add that Mailbox as an extra Mailbox. Outlook makes use of Autodiscover to get the knowledge on these mailboxes which might be auto mapped by way of the AlternateMailboxes person setting eg in XML it comes again like the next

One factor you possibly can’t see simply by way of the Trade Managed Shell cmdlet is which ACE’s (Entry Management Entries) have Automapping enabled on a selected Mailboxes DACL and which do not. You can also’t simply see from one mailbox which mailboxes shall be auto mapped to it (mainly a reverse mapping).So the aim of this script is to offer each a ahead and reverse mapping of Automapping setting for a group of Mailboxes which might be handed into to. It produces a report that appear to be

To get this assortment you possibly can both use a CSV file of addresses, Get-Mailbox or only a static record.

Eg to run the script utilizing Get-Mailbox

create a clean assortment
$Mailboxes = @()

populate the gathering
Get-Mailbox -ResultSize Limitless | foreach-object{$Mailboxes += $_.PrimarySMTPAddress}

then run the script like

 Get-AutoDiscoverMailboxMap -Mailboxes $Mailboxes

The report is outputted within the final line of the script.

I’ve put a duplicate of this script on GitHub right here https://github.com/gscales/Powershell-Scripts/blob/grasp/AutoDiscoverMap.ps1