I have many shared folders in a server. I need to view the users who has access to them using PowerShell but I do not know how to do it as I am new in PowerShell.
Do you have any scripts to do that?
Input: root folder, or server name. Any is ok for me
Output: folder, user
Look into using
Get-ACL
. This gives you the Access Control List for a folder.Here is more information from Microsoft on ACLs: Get-Acl