Rounding and converting to GB
$freeMemory = [math]::round($w32OSInfo.FreePhysicalMemory /1MB, 0) $intSize = [math]::round($intSize / 1GB, 0)