April 16, 2016

PowerShell - NTFS Permissions report

The PowerShell script below provides NTFS permissions report for folders. It includes Path, Identity, Rights and Owner information. Also it has a note if permissions are inherited or not. The script contains some limitations (path over 260 in lengths and some special characters) but in most cases I found it very useful. Especially if you need some quick overview of permissions.


Usage examples:
# Get NTFS permissions report for folder C:\Test
.\Get-NTFSPermissions.ps1 -path C:\Test

# Get the same report as above but only 2 folders in depth
.\Get-NTFSPermissions.ps1 -path C:\test -Depth 2

No comments:

Post a Comment