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

John Savill

October 9, 2003

1 Min Read
ITPro Today logo

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.

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.