How to find all users with Forwarding Address is set

Source Link

Exchange 2003:
In native Exchange 2003 you can do a custom search in Active Directory Users & Computers to find all users with forwarding address is set with some internal or external address.
(objectClass=*)(altrecipient=*)
Example: I have set a forwarding address for User 32 to forward all mails to User 31.

Now find it with Custom Search.
Active Directory Users & Computers -> Find -> Select Custom Search -> Enter (objectClass=*)(altrecipient=*) in LDAP Query Text Box -> Click Find Now.



Exchange 2007:
If Exchange 2007 is in native mode or co-existence with Exchange 2003 then you can use PowerShell to find the same thing.
Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Select Name, ForwardingAddress, DeliverToMailboxAndForward
Example: I have set a forwarding address for User 22 to forward all mails to User 21.



Now find it with PowerShell.

Note: PowerShell gives all users who are on Exchange 2007 as well as Exchange 2003. You can see the Exchange Version in below screen.



No comments: