I have an Netapp .csv containing volume names, size, etc. and I’m importing this into an Powershell array $volumes.
I’m filtering the stuff I need:
$volumes | select Name,"Storage VM",Capacity
However, the “Capacity” is in Byte and I’d like to display in GB. I know how to convert, but I don’t know how to add the converted item into the existing array:
foreach ($vol in $volumes) { $volsizeGB = $vol.Capacity/1GB }
How do I add this “$volsizeGB” to the $volumes?
Thanks
1