Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    856
    Thanks
    0
    Thanked 9 Times in 8 Posts

    Query AD for Email

    We use five-digit logins for our users (e.g. 76543). I would like to use VBA to query the email address of a specific user, identified by that five-digit name. I assume that means a query to ActiveDirectory... can anyone offer help with VBA code to do that?

    Many thanks.

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,506
    Thanks
    7
    Thanked 220 Times in 208 Posts
    There are plenty of AD query samples if you search. To extract the email address you use "mail" as the required field.
    http://stackoverflow.com/questions/1...g-vbscript-wsh

    cheers, Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •