Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

split Get-acl accesstostring into manageable strings

$
0
0
Hi
I am trying to report on folder access rights with get-acl. I get the folder name as well as the access list without problem, however I would like to filter the accesstostring part so that i can filter out well-known accounts and present the information more clearly.
here is what i have so far:

get-childitem \\server\share\folder | Where {$_.psIsContainer -eq $true}| get-acl |select-object pschildname,accesstostring |Format-List
which returns
PSChildName    : nameoffolder
AccessToString : Domain\group_RW Allow  Modify, Synchronize
                         BUILTIN\Administrators Allow  FullControl
                 CREATOR OWNER Allow  FullControl
                 CVLUX\Domain Admins Allow  FullControl
                 NT AUTHORITY\SYSTEM Allow  FullControl

What i would like is to get an array from accesstostring so that i can exclude CreatorOwner, etc...

thanks in advance

bruno
bruno

Viewing all articles
Browse latest Browse all 15028

Trending Articles



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