I'm new with powershell and I am currently stuck with an issue.
I import a CSV file with 2 columns (ServerName, and Size) like this :
Server | Size
-------------
SRV1 | 140
SRV2 | 120
SRV1 | 100
SRV1 | 140
SRV2 | 200
I want to add all Size values for each server, for example:
SRV2 = 120+200
SRV1 = 140+100+140
I have no idea how to do it. I tried with a for loop, but the operation is done for each line, so my results are false. Could anyone help me ?