Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

ACL and Ownership

$
0
0


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


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>