Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    861
    Thanks
    0
    Thanked 10 Times in 9 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
    Platinum Lounger
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    3,739
    Thanks
    7
    Thanked 242 Times in 230 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
  •