Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get associated security group for each folder?

$
0
0

Hi,

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 instanceSelect-Object fullname,securitygroup? And if possible also then grab the list of users that are a member of that group? Thank you!

Output would be like:

\\Server\Share\Folder1  Folder1-W  John Doe....

Get-ChildItem \\Server\Share | Where { $_.PSIsContainer } | Foreach  {Get-Childitem $_.FullName}  | Where { $_.PSIsContainer } | Select-Object fullname


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>