Results 1 to 4 of 4

Thread: [RESOLVED] Looking up User by Full Name (in AD)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    146

    Resolved [RESOLVED] Looking up User by Full Name (in AD)

    This is probably a simple question.. but I can't find how to look up a user in AD by their full name and return their ID. I can only find the reverse, such as:

    Code:
    Dim oUser As Object
        
    Set oUser = GetObject("WinNT://domain/UserName")
    
    MsgBox oUser.Fullname
    What if I essentially wanted to do

    Code:
    Set oUser = GetObject("WinNT://domain/Full Name")
    ?

    Obviously that doesn't work, but can anyone tell me the format that will work? Thanks

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: Looking up User by Full Name (in AD)

    whats AD???

  3. #3
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Looking up User by Full Name (in AD)

    AD: Active Directory

    See if this helps...

    look at the last post by Nitrous270
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    146

    Re: Looking up User by Full Name (in AD)

    Thanks Koolsid, that worked!

Posting Permissions

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



Click Here to Expand Forum to Full Width