Get Share Access List for All Shares On a Computer

This one-liner will get the Access Control List for each SMB share on the computer. If you wanted to do this for a list of computers, you could wrap this in an Invoke-Command.

Get-SmbShare | foreach {Get-SmbShareAccess -Name $_.Name}

Leave a Reply

Your email address will not be published. Required fields are marked *