#author("2019-08-27T11:29:18+09:00","default:ryuichi","ryuichi")
* PCのパーツの製造元など調べる [#i0aa3dcc]
#author("2019-08-27T11:31:35+09:00","default:ryuichi","ryuichi")
* PCのパーツの製造元など調べる - Get-WmiObject [#i0aa3dcc]
** メモリー [#d9cef0cd]
Get-WmiObject Win32_PhysicalMemory
*** メモリーの合計 [#q191426a]
Get-CimInstance Win32_PhysicalMemory | Measure-Object -Property capacity -Sum |
Foreach {"{0:N2}" -f ([math]::round(($_.Sum / 1GB),2))}
- ここではGB単位で取得している
- 参考:https://stackoverflow.com/questions/17681234/how-do-i-get-total-physical-memory-size-using-powershell-without-wmi