powershell to report both share and directory level permissions

pma111
pma111 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Managing Consultant
Commented:
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

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

Commented:
Yep, that's the one!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial