Get-ACL

Hi,

I'm new to powershell and i ran the below command but not sure how to extract only  information I need.
get-childitem \\servername\sharename -recurse | %{ get-acl $_.fullname }| export-csv "C:\acl_p.csv"

I just need the following info
- PSPath without this Microsoft.PowerShell.Core\FileSystem::
- PSChildName
-AccessToString without the  S-1-5-21.....
- owner
- Group
- Users

Thank you.
Rachel
RachelYAsked:
Who is Participating?
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
Try the following command...

Get-Childitem \\servername\sharename -recurse | % {get-acl $_.FullName} | Select PSChildName, Owner, Group, User | Export-csv c:\Export-acls.csv

Open in new window



Will.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.