0
Answer

extract information relating to Group or user names for Directory and Sub-directories

TAN WhoAMI

TAN WhoAMI

12y
1.3k
1
how do I write a C# application to extract information relating to Group or user names for Directory and Sub-directories?

to see the Group or user names for a particular directory, right click on that directory-> Properties-> Security tab.

I also need to display the Permission for that Group or user names, whether a Full control, Modify, Read & execute, List folder contents, Read, Write, Special permissions is allowed or denied, etc.

say I have D:\TEST\test1\test2\test3\test4
I would want to display those information on Group or usernames on D:\TEST, D:\TEST\test1, D:\TEST\test1\test2, D:\TEST\test1\test2\test3, D:\TEST\test1\test2\test3\test4 directory and sub-directories.

I understand this has something to do with Active Directory stuffs, which I do not really understand. Also, is Windows PowerShell useful for my needs? What are the needed commands to be in Windows PowerShell for me to extract those information?

Any sample code would be greatly appreciated.

thanks.