Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    877
    Thanks
    0
    Thanked 11 Times in 10 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. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    4,694
    Thanks
    13
    Thanked 350 Times in 332 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
  •