Exchange Server

Exchange 2007 – Get list of recipients NOT hidden

The following cmdlet will help to generate a list of recipients ‘not hidden’

get-recipient -resultsize unlimited -filter {HiddenFromAddressListsEnabled -eq $false}

If you want to export the result to a csv file,

get-recipient -resultsize unlimited -filter {HiddenFromAddressListsEnabled -eq $false} | Export-CSV c:recipient.csv