• 1. London, UK
  • 2. Sydney, Australia
  • 3. New York, NY
  • 4. Melbourne, Australia
  • 5. Paris, France
  • 6. San Francisco, CA
  • 7. Chicago, IL
  • 8. Moscow, Russia
  • 9. Amsterdam, The Netherlands
  • 10. Toronto, Canada

Tuesday, October 18, 2005

 

List users with email forwarded

Posted by Bharat Suneja at 11:23 PM
Here's a script written in response to ng post today on microsoft.public.exchange.admin.

Requirement: List users with email being forwarded to another recipient. This can be done easily in ADUC console on Windows Server 2003 by creating a saved query.
Query text: (&(homeMDB=*)(altRecipient=*))

The other half of the requirement is to actually list the name of the user/mailbox being forwarded to. This is something ADUC can't do - there's no choice to add and display altRecipient in a column next to each user.

The script will show the user being forwarded to, and also if messages are being delivered to both places - the original recipient's mailbox and the alternate recipient.

Download the script here: listForwardingEnabled.zip

Labels: ,

5 Comments:

February 26, 2006 9:03 AM
Blogger David Buckley said...

Bharat, any chance you could help me out and mod this script a little. I ran it as is and there were over 200 users listed. This of course ran off the screen, and this is a report that I need to get across several of my email environments. We are in the process of collapsing email environments, to go form 12 to 1. Having the output sent to file would be brilliant.

Your help is greatly appreciated.

Kind regards,

David Buckley:)

 
February 26, 2006 11:36 AM
Blogger Bharat Suneja said...

David,

Output to a text file from any script is quite easily accomplished from the command line.

scriptname.vbs >filename.txt
OR
scriptname.vbs >filename.csv
creates a new file.

scriptname.vbs >>filename.txt
appends to an existing file.

I normally include a /f: switch with scripts to output to a file, but forgot to do that in this script. Will add this soon!

Bharat

 
April 3, 2006 1:30 PM
Anonymous Anonymous said...

I used this code to add to my "Saved Queries" and it worked perfectly. Thanks. I'm also looking for a reporting method to show mailbox usage for my Exchange 2000 server. Do you have any suggestions on reporting on this info?

 
April 3, 2006 1:34 PM
Blogger WTHunter said...

I used this code in my "Saved Queries" and it worked perfectly. I am looking for a way to report on my Exchange 2000 users mailboxes to report on mailbox usage. (Whether or not they are actually being used by the Owner) Do you have any suggestions?
email me rod at rodharrison dot com

 
April 3, 2006 1:35 PM
Blogger WTHunter said...

I used your code in my "saved queries" and it worked perfectly. I am looking for a method to report on my Exchange 2000 mailboxes to see if they are actually being used by the mailbox owner. Do you have any suggestions on how to do this?

 

Post a Comment

Links to this post:

Create a Link

<< Home