Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

How can I see all the existing mail forwards in Exchange 2007

Afternoon,

I would like to get a dump of all the mail forwards that are currently active on my Exchange 2007 server. Does anyone know if this is possible via Powershell? I've been googling for a while but no luck.

Thanks.
0
emailjws
Asked:
emailjws
  • 2
  • 2
1 Solution
 
ATIGCommented:
Are you looking for the Admin configured mail to be fowarded or user rules?
0
 
emailjwsAuthor Commented:
Right now I am looking for user rules (forwards that they have configured using Outlook I guess), but ideally I would like a list of all accounts that are being forwarded outside the organization.

Thanks.
0
 
ATIGCommented:
get-mailbox -resultsize:unlimited | fl Alias,ForwardingAddress

this will not get rules though
0
 
Farhan KaziSystems EngineerCommented:
You may need to query (DSQuery * ) for 'altRecipient' attribute.

More Info:
http://technet2.microsoft.com/windowsserver/en/library/46ba1426-43fd-4985-b429-cd53d3046f011033.mspx?mfr=true
(If you need more info regarding DSQuery * do let me know.)

Have a look at following (script for getting list of all the users who have an alternate recipient):
http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar06/hey0322.mspx

Hope this helps!
0
 
emailjwsAuthor Commented:
Thanks for the replies, much appreciated.

farhankaziDate- I ran the script from the second link and it works great but it doesn't seem to show the users that have the forward setup via outlook.

To give your more information, I am particually looking for one user who moved to another division within our org, his email address is autoforwarding to his new address, he now wants this stoppped. Thing is his AD account was deleted a while back so I can't see how the forwarding is still working, I have tested it though and it is. Very strange. Any ideas?
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now