to check the Directory Permission recursively I use
get-childitem\\abcd\E -recurse | get-acl | Format-List | Out-File "c:\temp\output.txt"
This lists the local and AD groups with access to files and folders.
I am looking for a script that can list the users in the AD groups with access to all these files/folders.