Private/Permissions/EXO/Get-MailboxLegacyExchangeDNHash.ps1

Function Get-MailboxLegacyExchangeDNHash {
    <#
    .SYNOPSIS
     
    .EXAMPLE
     
    #>

    param (        

    )
    Begin {
        $MailboxLegacyExchangeDNHash = @{}
    }

    Process {
        $MailboxLegacyExchangeDNHash[$_.LegacyExchangeDN] = $_.PrimarySMTPAddress
    }
    End {
        $MailboxLegacyExchangeDNHash
    }
}