1. 程式人生 > >獲取System information裡總得實體記憶體

獲取System information裡總得實體記憶體

一 .獲取System information裡總的實體記憶體

$memory=(Get-WmiObject -Class Win32_ComputerSystem).TotalPhysicalMemory /1gb
"總的實體記憶體 = $([Math]::Round($memory,2)) GB"