For those of you who are looking to find a way to obtain particular user information for each user object I thought I would give some examples as I have been using them recently to verify fields.
using the dsquery to pipe info to the dsget
dsquery user -limit 1000 | dsget user -samid -email > c:\file.csv
above example will get the users (up to 1000 as default is 100) sam account and their email attribute. At the end I wanted to export this list to a csv file..
Link below to get other parameters that you can harvest.
Thought sharing the tip would maybe get the rest of you thinking if you are stumped on something like this. Have a good day!
Cory
using the dsquery to pipe info to the dsget
dsquery user -limit 1000 | dsget user -samid -email > c:\file.csv
above example will get the users (up to 1000 as default is 100) sam account and their email attribute. At the end I wanted to export this list to a csv file..
Link below to get other parameters that you can harvest.
Thought sharing the tip would maybe get the rest of you thinking if you are stumped on something like this. Have a good day!
Cory