I am really struggling to create the query that will export the following:
Account
FirstName
LastName
the OU that the user resides in
Ideally I would like it as a CSV. I do not have access to the domain controller, but can run DSQUERY/DSGET/etc. from my pc.
Best Answer
Depending on your tools, you can do
That'll create a space-separated list of account name, firstname, lastname, and location.
Converting it into a true csv takes a bit more work.
Which will get you output like