Skip navigation

Can I obtain more information from the "Dsquery user" command than just the user's name?

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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish