- • List all users in an OU:
dsquery user -limit 2000 "ou=West,dc=MyDomain,dc=com" | dsget user -samid
dsquery user OU=Sales,OU=Usuarios,DC=mycompany,DC=ecu,DC=com
• To find all computers in the organizational unit (OU) given
by ou=sales,dc=micrsoft,dc=com and display their DNs:
dsquery computer ou=sales,dc=microsoft,dc=com
dsquery computer –name (put name here)
Examples:
To find all computers in the current domain whose name starts with "ms"
and whose description starts with "desktop", and display their DNs:
dsquery computer domainroot -name ms* -desc desktop*
Monday, 17 September 2012
Active Directory (AD) Query: dsquery
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment