Im sure this has been discussed before but for the lift of me ever post I read doesn't work. ok a little information. What im trying to do it scan our servers and get export a list of Folders, subfolders and files and who has access to them. Ive tried my different things with no luck.
The closet ive come is using this
Get-ChildItem SERVERNAME -Recurse |Get-Acl |Select-Object pspath,accesstostring| Export-CSV "C:\Windows\temp\test1.csv"
It list all the files and folders but only exports the first person. Any suggestion or better way to get ths done.
Thanks for the help