{"id":19,"date":"2012-10-10T19:09:56","date_gmt":"2012-10-10T19:09:56","guid":{"rendered":"http:\/\/www.cos-it.com\/blog\/?p=19"},"modified":"2014-01-14T12:30:11","modified_gmt":"2014-01-14T12:30:11","slug":"simple-but-effective-cacls-on-heat-with-powershell","status":"publish","type":"post","link":"https:\/\/www.hackwhackandsmack.com\/?p=19","title":{"rendered":"Simple but Effective CACLS on Heat with PowerShell (PS)"},"content":{"rendered":"<p>Hey Guys,<\/p>\n<p>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.<\/p>\n<p>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:<\/p>\n<pre><strong>Get-ChildItem C:\\ -Recurse | Get-Acl | Select-Object PSPath, AccessToString | Export-Csv C:\\PS.csv<\/strong><\/pre>\n<p>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 \ud83d\ude09<\/p>\n<p><a href=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2012\/10\/PS.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-26\" title=\"PS\" src=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2012\/10\/PS.jpg\" alt=\"\" width=\"1091\" height=\"667\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip; <a class=\"more-link\" href=\"https:\/\/www.hackwhackandsmack.com\/?p=19\">Continue reading <span class=\"screen-reader-text\">Simple but Effective CACLS on Heat with PowerShell (PS)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/19"}],"collection":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":8,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}