cmd export users permission of a specific folder into csv file

Hi,
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
Wilder1626Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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, MVPOwnerCommented:
cmd isn't that good.. use powershell

get-acl
0

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 Specialist/DeveloperCommented:
Built-in CMD commands
icacls c:\windows\ /save AclFile /T /C /Q

Open in new window

http://virot.eu/save-and-restore-ntfs-permissions-using-icacls/

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

https://helgeklein.com/setacl/examples/managing-file-system-permissions-with-setacl-exe/
1
Jose Gabriel Ortega CastroEE Solution Guide - 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

0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Shaun VermaakTechnical Specialist/DeveloperCommented:
Think folder not OU
0
Wilder1626Author Commented:
Thanks everyone, let me try this. I'm learning this at the same time. First time doing this.
0
Wilder1626Author Commented:
Thanks i was able to get the information by using get-acl.
0
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
Powershell

From novice to tech pro — start learning today.