title: Concatenate string to integer inside of Get-WmiObject table - PowerShell
body: <p>I want to add &quot;GB&quot; to each instance of &quot;Size&quot; so each output shows &quot;8GB&quot;. I'm not sure how to add or concatenate a string to the integer within the table...</p>
  <p>I have tried simply adding <code>+&quot;GB&quot;</code>, assigning &quot;GB&quot; to a variable then adding <code>+ $GB</code>. But get back <code>Select-Object : A positional parameter cannot be found that accepts argument 'System.Object[]'.</code></p>
  <p>Input:</p>
  <pre><code>$RAM = Get-WmiObject Win32_PhysicalMemory -ComputerName $Computer |
          select DeviceLocator,Manufacturer,PartNumber, @{n=&quot;Size&quot;;e={[math]::truncate($_.Capacity / 1073741824)}},Speed | FT -AutoSize
  Write-Output $RAM
  </code></pre>
  <p>Output:</p>
  <pre><code>DeviceLocator Manufacturer PartNumber         Size Speed
  ------------- ------------ ----------         ---- -----
  DIMM1         000000000000                       8  1600
  DIMM2         000000000000                       8  1600
  DIMM3         000000000000                       8  1600
  DIMM4         000000000000                       8  1600
  </code></pre>