Subscribe to Windows IT Pro
July 11, 2006 12:00 AM

Locating Email Accounts in AD

Use Perl and key Windows technologies to gather the necessary addresses
Windows IT Pro
InstantDoc ID #50543
Rating: (6)
Downloads
50543.zip

The script examines each entry in the list to determine its protocol and address. If the address is the protocol's primary address, it's prefixed with an asterisk (*). To determine the primary address, the script tests whether the protocol is all uppercase. The address is then pushed onto an array that's stored as a value of the % ProxyAddressList hash, in which the protocol is the associated key.

Next, the script displays some account information, and finally Listing 4 is executed. This block of code retrieves the address protocols from the keys of the %ProxyAddressList hash and sorts them. Then, for each protocol, the various email addresses are sorted and printed.

Email Lookups Made Simple
With this article's script, you'll find that locating email addresses is easy. Historically, you would have needed to use AD tools to log on to a machine, run an AD query tool, create a query for a specific email address, and then wait. It wasn't an impossible process, but it was cumbersome, mistakeprone,and time consuming. Once again, Perl comes to the rescue.

Related Content:

ARTICLE TOOLS

Comments
  • HAROLD
    6 years ago
    Sep 18, 2006

    Thank you Ms.Grubb!!!!

  • Anne
    6 years ago
    Sep 15, 2006

    I just unlocked this article, so it's now available to all registered users. Thanks for letting us know about the problem. --Anne Grubb, senior editor

  • HAROLD
    6 years ago
    Sep 15, 2006

    Same here. Don't bother cross referencing material from other publications unless it's going to be made available to other subscribers.

  • Gene
    6 years ago
    Sep 13, 2006

    Exchagne & Outlook Administrator link you to this article for its solution. Now you need to purchase a Windows Scripting subcription to read it? Tisk Tisk

  • NICK
    6 years ago
    Jul 14, 2006

    I can't read articles even though I am logged in. What gives?

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.