• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 103
  • Last Modified:

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.
0
Wilder1626
Asked:
Wilder1626
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
cmd isn't that good.. use powershell

get-acl
0
 
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 CCEO J0rt3g4 Consulting ServicesCommented:
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell┬« is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now