cmd export users permission of a specific folder into csv file

Wilder1626
Wilder1626 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
cmd isn't that good.. use powershell

get-acl
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
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/
Jose Gabriel Ortega CastroTop Rated Freelancer on MS Technologies
Awarded 2018
Distinguished Expert 2018

Commented:
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

Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Think folder not OU
Thanks everyone, let me try this. I'm learning this at the same time. First time doing this.
Thanks i was able to get the information by using get-acl.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial