A. You can't obtain additional information directly from the "Dsquery user" command, but you can pipe (i.e., send) the command output to the Dsget command with a list of attributes to fetch. For example, to display the distinguished name (DN) and description of the users matching the "Dsquery user" command (specifically, those users whose names start with the letter "J" and who hadn't changed their passwords in more than 10 days), I typed
dsquery user DC=it,DC=uk,DC=savilltech,DC=com -name J* -stalepwd 10 | dsget user -desc -dn
You can type
dsget user /?
to view a list of all attributes that Dsget can fetch.
0 comments
Hide comments