Is there a way to query AD for a single users email address if I know their Logon Name?
I use something like this in a script, but I'd like to know if I can just get the info for a single user:
Set objDomain = GetObject("WinNT://mydomainname.com,domain")
objDomain.Filter = Array("User")
For Each objUser In objDomain