Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

how to get NetBios name using login name

$
0
0

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!


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>