find all computer objects in a domain, print their cname's (host names):
ldapsearch -b "dc=mydomain,dc=com" -D "cn=myadminaccount,ou=Users,dc=mydomain,dc=com" -H ldap://mydomaincontroller/ -W -x "(objectclass=Computer)" cn
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment