вторник, 20 октября 2015 г.

show disabled users and not hiden from address book (include witout mailbox)
get-mailbox -ResultSize Unlimited * | where {(-not $_.HiddenFromAddressListsEnabled) -and (-not (get-aduser $_.samaccountname).enabled)} | sort-object name | select name, alias