quarta-feira, 5 de outubro de 2011

PowerShell: Get NTFS permissions from a Folder


NTFS permissions are hard to be audited in a way that you can get an broad overview from your file system ACLs.

The following `script` will dump all Directories permissions to a CSV file:

Get-ChildItem E:\Data -recurse | Where {$_.psIsContainer -eq $true} | Get-Acl | 
Export-Csv file-perms.csv

Hope this helps someone.

Nenhum comentário:

Postar um comentário