I am using a line of PowerShell to check RAM on a machine and it works great but I need to add a string to the output:
Get-CimInstance -class Win32_PhysicalMemory |
Measure-Object -Property capacity -Sum |
% {[Math]::Round(($_.sum / 1GB),2)}
This produces a result based on how much memory the machine has but I need to add "GB" to the end so the output is 16GB not just 16.
I have tried various things, none has worked. I guess I am struggling to understand how to add a string to the output of a calculated property.