获取System information里总得物理内存

一 .获取System information里总的物理内存

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

猜你喜欢

转载自blog.csdn.net/qq_37550440/article/details/84106829