Powershell: Piping output of pracl command to array
问题 pracl is a sysinternal command that can be used to list the ACLs of a directory. I have a list of shares and I want to create a csv file such that for each ACL entry, I want the share path in one column and share permission in the next. I was trying to do that by using the following code $inputfile = "share.txt" $outputFile = "out.csv" foreach( $path in Get-Content $inputfile) { $results=.\pracl.exe $path { foreach ($result in $results) {write-host $path,$line} } $objResult = [pscustomobject]