Public/Get-UserDisabledMailboxes.ps1

function Get-UserDisabledMailboxes {
    <#
    .SYNOPSIS
    -Taylor Lee
    Modified 05172019
 
    .DESCRIPTION
    Create a csv list for mailboxes associated with disabled AD Accounts
 
    .NOTES
    Requires the Active Directory module and must be run from the Exchange Server
 
    .Link
    Get-EndpointReport
    #>


    [CmdletBinding()]

    Param (
    )

    Get-User -RecipientTypeDetails UserMailbox |
    Where-Object { $_.UserAccountControl -like "*accountdisabled*" }
}