what modification i need to introduce to the following script in order to get ownership information too:
Get-ChildItem "C:\DFSRoots\DFS\Folder_Redirection" -Recurse | ?{ $_.PsIsContainer } | %{
$Path = $_.FullName
# Include inherited rights from the report
(Get-Acl $Path).Access | Select-Object `
@{n='Path';e={ $Path }}, IdentityReference, AccessControlType, `
InheritanceFlags, PropagationFlags, FileSystemRights
} | Export-CSV "C:\exported\Permissions4.csv"
Thanks.
Junior