Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

PowerShell ACL question

Aug 13, 2007 6:16AM PDT

I'm trying to recurse a drive on a server of mine and want to find what out there I don't have access to move(as an admin). Right now I have
get-childitem "\\server\Share" ?recurse | get-acl |
select-object path,owner,accesstostring,group | export-csv c:\ACL.csv

but I just want to list what I DON'T have access to not everything (that would be one really big CSV) I assume there is some kind of foreach statement that is not coming to me, any help would be great.

Discussion is locked