Skip to content

Get-ExchangeAddressListReport

Exchange: Generates a detailed audit report of Address Lists

#Requires -Version 5.1

[CmdletBinding()]
Param ()

Process {
    try {
        $addressLists = Get-AddressList -ErrorAction Stop

        $results = foreach ($al in $addressLists) {
            [PSCustomObject]@{
                Name               = $al.Name
                DisplayName        = $al.DisplayName
                IncludedRecipients = $al.IncludedRecipients
                RecipientFilter    = $al.RecipientFilter
                Path               = $al.Path
                IsValid            = $al.IsValid
                DistinguishedName  = $al.DistinguishedName
                LastModified       = $al.WhenChanged
            }
        }

        Write-Output ($results | Sort-Object Name)
    }
    catch {
        throw
    }
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.