I am trying to exclude the built in accounts and NT SYSTEM from the output of get-acl
Get-ChildItem -path C:\scripts -Directory -Recurse | Get-Acl -exclude ("BUILTIN\*") | Format-Table -AutoSize -Wrap
Doesn't work and if I used
Get-ACL -ErrorAction Continue |
?{$_.AccessToString -notmatch "BUILTIN"}|
Doesn't work either