Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Checking Permissions

$
0
0

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


Viewing all articles
Browse latest Browse all 6937

Trending Articles