title: Get associated security group for each folder?
body: <p>I am using the powershell code below to get a list of folders and subfolders on a network share. Is it possible to also display the associated security group with it? For instance Select-Object fullname,securitygroup? And if possible also then grab the list of users that are a member of that group? Thank you!</p>
  
  <p>Output would be like:</p>
  
  <p>\Server\Share\Folder1  Folder1-W  John Doe....</p>
  
  <pre><code>Get-ChildItem \\Server\Share | Where { $_.PSIsContainer } | Foreach  {Get-Childitem $_.FullName}| Where { $_.PSIsContainer } | Select-Object fullname
  </code></pre>