List folders assigned to a security group

Welcome Forums General PowerShell Q&A List folders assigned to a security group

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
6 months ago.

  • Author
    Posts
  • #100684

    Participant
    Points: 0
    Rank: Member

    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

  • #100687

    Participant
    Points: 140
    Helping Hand
    Rank: Participant

    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.

The topic ‘List folders assigned to a security group’ is closed to new replies.