Author Posts

March 28, 2018 at 12:30 pm

My question is to know how to export Active Directory users, and save in a worksheet in excel. I used this command:

dsquery user domainroot |dsget user -display -office -loscr > C:\Arquiv.csv

But when it generates the table, it appears with the files out of order and messy.

March 28, 2018 at 5:08 pm

You might start with learning the very basics of Powershell and even maybe learning how to use an internet search engine.

For Powershell I could recommend some of the links shared in this forum post: Beginner Sites and Tutorials.

March 28, 2018 at 5:10 pm

First of all, this question was for those who know how to answer, if you do not know, I ask you not to talk nonsense.

March 28, 2018 at 5:13 pm

I know exactly how to do what you asked but your question shows that you didn't even spend any effort at all to find an answer by yourself. What you aksed has been asked and answered thousand times already. We do not write ready to use code on request here. If you have specific question to a particular piece of code you wrote you're welcome to post this piece of code here and ask a question to that code and maybe to the errors you get.

March 28, 2018 at 5:34 pm

Thank you,
Could you tell me where I can learn more?

March 28, 2018 at 5:35 pm

I already did in my first answer. So you didn't even read my answer completely. :-/