Powershell get ntfs permissions

broken image
broken image
broken image

# $Header = 'Folder Path,IdentityReference,AccessControlType,IsInherited,InheritanceFlags,PropagationFlags,FilesystemRights'Īdd-Content -Value $Header -Path $OutFile $Header = 'Folder Path,IdentityReference,AccessControlType,IsInherited,InheritanceFlags,PropagationFlags' $RootPath = '\\Pdc\Shared' # Insert your share directory path $OutFile = 'C:\Temp\Permissions.csv' # Insert folder path where you want to save your file and its name