Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 8820

Need help with Powershell command to display disabled accounts with forwarders setup

$
0
0

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.


Viewing all articles
Browse latest Browse all 8820

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>