I can only get the length when exporting this to csv, how should it be done properly.
$redo = Import-CSV c:empestimport.txt | Group-Object email |
foreach { "{0} ,{1}" -f $_.Name, (($_.Group | foreach { $_.group }) -join ', ')
}
$redo | Export-CSV c:empest.csv -NoTypeInformation
#
See Question&Answers more detail:os"Length" "46" "59" "110" "47" "149" "38" "69" "32" "62" "29" "49" "31" "27" "48" "55" "42"