Getting NTFS permissions Recursively

1. Download File System Security PowerShell Module

“The module provides 10 cmdlets to manage permissions on the file system, like adding and removing ACEs, setting the inheritance, getting the current permissions or even get the effective permissions for a certain user.”

2. Import module and use Get-ChildItem2 cmdlets (it handles long paths much better)

 Import-Module ntfssecurity
 Get-ChildItem2 -Directory 'E:\DATAFOLDER' | Get-NTFSAccess | Export-Csv c:\temp\permisions.csv -NoTypeInformation