#将 D:\改成你的目标路径 执行即可
dir d:\ -Recurse|%{
$fullname =$_.FullName;
(Get-Acl $fullname).Access|%{$fullname +”:”+$_.IdentityReference}|get-unique
}
———————————————————-
D:\Program Files (x86):BUILTIN\Administrators
D:\Program Files (x86):NT AUTHORITY\SYSTEM
D:\Program Files (x86):NT AUTHORITY\Authenticated Users
D:\Program Files (x86):BUILTIN\Users
D:\SAP:BUILTIN\Administrators