Simple but Effective CACLS on Heat with PowerShell (PS)

Hey Guys,

I was messing with file permissions on windows the other day and needed a quick way to obtain file permissions on certain directories or complete drives without the need to upload new tools etc.

Also I wanted the output in an easy, readable manor so I thought CSV would be a good way to do that. Anyway, cutting to the chase I used this in PowerShell:

Get-ChildItem C:\ -Recurse | Get-Acl | Select-Object PSPath, AccessToString | Export-Csv C:\PS.csv

This is what you end up with, if you add a filter function it makes it easy to look at all the permissions that are there and view the important ones, i.e. Everyone Full Control 😉

Leave a comment

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