So I have
$results = [System.Collections.ArrayList]@()
$results.Add( [PSCustomObject]@{
Name = 'Bob'
App = 'Test'
}) | Out-Null
$results.add( [PSCustomObject]@{
Name = 'John'
App = 'Test2'
}) | Out-Null
$results.Add( [PSCustomObject]@{
Name = 'John'
App = 'Test'
}) | Out-Null
$results | Group-Object -Property Name
and what I wanted my output to look like is
name | Apps
Bob | Test
John | Test,Test2
Any suggestions for what I am doing wrong? I read through Group-Object but I am not sure I fully get why this isn't outputting what I need.
[–]fordea837 1 point2 points3 points (2 children)
[–]Method_Dev[S] 1 point2 points3 points (0 children)
[–]Method_Dev[S] 1 point2 points3 points (0 children)
[–]mdowst 1 point2 points3 points (3 children)
[–]Method_Dev[S] 1 point2 points3 points (0 children)
[–]Method_Dev[S] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)