Powershell to list folder permission

AXISHK
AXISHK used Ask the Experts™
on
Is it possible to write a powershell to list few folders ntfs permission (top level, not need for subfolder) , ?
Thx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
von AxlSystem Engineer
Commented:
Get-ChildItem c:\windows | Get-ACL

Author

Commented:
Can we split the "Access" column" into separate users and remove the domain name  before each user ?

Thx
Technical Expert
Commented:
Didn't we already do this on another?

Are you wanting the output split up more than this?

$path = "C:\local"
$users = @()
$users = (get-acl $path).Access |select -expandproperty identityreference |% {$_.value.split('\')[1]}
$details = @()
$details = "" |select path, users
$details.path = $path
$details.users = $users

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial