Friday, February 20, 2009

View NetBios Name on command line

Run the following command to find the netbios name of a domain.

dsquery * cn=partitions,cn=configuration,dc=myrootdns2003,dc=com -filter "(&(objectcategory=crossref)(dnsroot=myrootdns2003.com))" -attr netbiosname
adfind tool can also be used to find netbios name of a domain.

adfind -b cn=partitions,cn=configuration,dc=myrootdns2003,dc=com -f "(&(objectcategory=crossref)(dnsroot=myrootdns2003.com))" cn netbiosname

0 comments:

Design by infinityskins.blogspot