Ich möchte alle NTFS Berechtigungen mit Get-ACL anzeigen.
get-acl -path (get-smbshare dion | select path).path | foreach-object { $t = $_.Access; Write-Output "$($t.AccessControlType) $($t.IdentityReference)" }
Dabei wird aber nicht
Allow User1
Allow User2
Allow User3
ausgegeben sondern zuerst alle AccessControlType und danach alle IdentityReference.
Allow Allow Allow User1 User2 User3
Wie kann ich die Liste so ausgeben das jeweils IdentityReference und AccessControlType in einer Zeile stehen?