Hello Technet,
I am supposed to write a script which is checking a list (csv) including Software (7-Zip for example)
$csv = Import-Csv -Path 'XXXXXXXX' -Delimiter ',' $array = @() $temp = $csv | Group-Object -Property Application, Count foreach($entry in $temp) { $obj = 1 | Select-Object -Property Application, Count $name = $entry.Name.Split(',') $obj.Application = $name[0] $obj.Count = $name[1] $array += $obj }
So the problem is now there is an output like this
Application Count----------- -----
7-Zip 19
7-Zip 11
7-Zip 5
I want to generate an additional csv where EVERY object in that list is unique (I already tried it with | sort -unique).
For example, the desired output is
App = 7-Zip
Count = 35
and after this the next item in the list. But if it's unique already the Application name as well as the count shall be included into my output.
I hope you can help me!