Author Posts

May 16, 2018 at 12:53 pm

Hi all,

I really like the way Powershell can make my like so much easier, but still struggle to get the correct lines of code.

Is there a way to get a list of all (unc) folders that have permissions linked to a specific security group?
I know the way to get all permissions on a specific unc path:

Get-acl $Path | select -expand access

but I am looking to reverse this to output the folders where this security group is used.
So input should be somthing like $Securitygroup (e.g. Active Directory Security Group)
And output should be like
\\unc path x\
\\unc path y\
\\unc path z\
etc.

Hope someone is able to help me out.
Regards,
Colin

May 16, 2018 at 1:10 pm

Is there a way to get a list of all (unc) folders that have permissions linked to a specific security group?

Actually not. You would have to check ALL folders and their permissions to get this information.