cmd export users permission of a specific folder into csv file

I would like to extract a list of all the users that have permission on a specific folder by using cmd on windows. How can i do that?

Thank you for your help.
LVL 11
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPRetiredCommented:
cmd isn't that good.. use powershell


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
Built-in CMD commands
icacls c:\windows\ /save AclFile /T /C /Q

Open in new window

But I prefer SetACL, more powerful and has a library that I can call from C#
SetACL.exe -on "\\server1\share1\users" -ot file -actn list -lst "f:sddl;w:d,s,o,g" -rec cont -bckp "d:\data\setacl listing.txt"

Open in new window
Jose Gabriel Ortega CastroEE Solution Guide/Topic Advisor and CEO Faru Bonon ITCommented:
On old days, there is still works on any version of AD since 2003 up to 2016:

csvde -f here.cscv

Open in new window

HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Shaun VermaakTechnical SpecialistCommented:
Think folder not OU
Wilder1626Author Commented:
Thanks everyone, let me try this. I'm learning this at the same time. First time doing this.
Wilder1626Author Commented:
Thanks i was able to get the information by using get-acl.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.