一 .获取System information里总的物理内存
$memory=(Get-WmiObject -Class Win32_ComputerSystem).TotalPhysicalMemory /1gb
"总的物理内存 = $([Math]::Round($memory,2)) GB"
一 .获取System information里总的物理内存
$memory=(Get-WmiObject -Class Win32_ComputerSystem).TotalPhysicalMemory /1gb
"总的物理内存 = $([Math]::Round($memory,2)) GB"