I have a command which lists all exchange accounts that have forwarders set up. But I need to filter these to only show "disabled" accounts that have forwarders setup. I am new to powershell so im not sure how to approach this. Here is the command I am using:
Get-Mailbox -ResultSize Unlimited | Where {$_.ForwardingAddress -ne $null} | Select Name, ForwardingAddress, DeliverToMailboxAndForward | Export-CSV\\Path\file.csv
Any help would be appreciated. Thanks.
This is Exchange 2010 BTW.