• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 929
  • Last Modified:

script to get list of the user who have access to share folder

Hi Guys,

can any one help me with script to get list of all users with the Permissons rights of share folders now i got the poweshell command
(Get-Acl t:\dba).Access | Format-Table -wrap
but this will list all user which are not part of secuirty group and directly added for permisson and it also display security group

but what i need is to have list of all user including which are in securitu group

please HELP?
1 Solution
ShareEnum works well for me.  Does it look like what you need?
jitendra_raychuraAuthor Commented:
Sorry that's not i was looking
i was looking a script to find permission on the given folder and if within that we have folder which have security group in that it should list all the user within that security group
Local Security Groups?
We Need Your Input!

WatchGuard is currently running a beta program for our new macOS Host Sensor for our Threat Detection and Response service. We're looking for more macOS users to help provide insight and feedback to help us make the product even better. Please sign up for our beta program today!

jitendra_raychuraAuthor Commented:
Yes Most of them are domain local Security Group
Dale HarrisProfessional Services EngineerCommented:
Try this:

$ACL = get-acl "C:\"
$ACL.access | %{$_.identityreference}

This will list all of the groups/users that are on the folder itself.

This question that I answered before also might help:


Dale Harris
Chris DentPowerShell DeveloperCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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

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.

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