clear-host $MesACLs = get-acl "C:\" $ListeACL = @() ForEach ($OneACL in $MesACLs.Access) { $OneAclResult = New-Object -TypeName PSObject $MaVariable = [string] $OneACL.IdentityReference $OneAclResult | Add-Member -Type NoteProperty -Name IdentityReference -Value $OneACL.IdentityReference #$MaVariable $OneAclResult | Add-Member -Type NoteProperty -Name FileOneAclResultRights -Value $OneACL.FileOneAclResultRights $OneAclResult | Add-Member -Type NoteProperty -Name IsInherited -Value $OneACL.IsInherited $OneAclResult | Add-Member -Type NoteProperty -Name AccessControlType -Value $OneACL.AccessControlType $OneAclResult | Add-Member -Type NoteProperty -Name InheritanceFlags -Value $OneACL.InheritanceFlags $ListeACL += $OneAclResult } $ListeACL | Format-Table #$ListeACL | Where-Object {$_.IdentityReference -match ""} | Format-Table