We help IT Professionals succeed at work.

powershell to report both share and directory level permissions

pma111 asked
I am after a power shell command that will report for all shares on a server, both the share and directory level permissions, written to *.CSV. Is this possible? I used to use a tool called MBSA which would include these in an easy to view format, but its recently been retired, so a power shell replacement would be most useful. My understanding is both need to be considered with determining access, as it works of a premise of the most restrictive permission takes effect.
Watch Question

Managing Consultant
Get-ServerShares by David Dubuque does what you want. It's a previously answered question here on EE, but I didn't write down the question number when I saved the script, sorry.
Philip ElderTechnical Architect - HA/Compute/Storage

@Michael Is it this one? There's a script in there.
Michael B. SmithManaging Consultant

Yep, that's the one!