标签:powershell
$a="C:\temp\"$b=Get-ChildItem $a -Recurse -Depth 3 -Directory | select -ExpandProperty FullName
$b | % {
$c=$
(Get-Acl $.trim()).Access | select @{Name="Path";E={$c}},IdentityReference,FileSystemRights,AccessControlType
} | Export-Csv "~\ACL.csv"
& "~\ACL.csv"
标签:powershell
原文地址:http://blog.51cto.com/xrbenbeba/2117531