I want to query AD for the NetBios name of the computer given the login name of that user.
objCommand.CommandText = "Select ADsPath, Name, Description from " & "'LDAP://dc=xyz,dc=xyz,dc=xyz' where objectClass='computer' AND givenName='Tim' AND objectCategory='user'" 'AND sAMAccountName = 'tlm1234'
I don't think thats correct - any ideas?
Thanks!