Examples: To find all users with names starting with "John" and display their office numbers: dsquery user -name John* | ...

Examples:  To find all users with names starting with "John" and display their office  numbers:     dsquery user -name John* | dsget user -office    To display the sAMAccountName, userPrincipalName and department attributes of  the object whose DN is ou=Test,dc=microsoft,dc=com:     dsquery * ou=Test,dc=microsoft,dc=com -scope base -attr   sAMAccountName userPrincipalName department    To read all attributes of any object use the dsquery * command.  For example, to read all attributes of the object whose DN is  ou=Test,dc=microsoft,dc=com:     dsquery * ou=Test,dc=microsoft,dc=com -scope base -attr *    Directory Service command-line tools help:  dsadd /? - help for adding objects.  dsget /? - help for displaying objects.  dsmod /? - help for modifying objects.  dsmove /? - help for moving objects.  dsquery /? - help for finding objects matching search criteria.  dsrm /? - help for deleting objects.
English
English (United States)
日本語
Japanese