Saturday, June 21, 2025

Show Physical memory in bytes on Powershell 7

The following command will output one line per bank installed showing the number of bytes available

Write-Output $(Get-CimInstance -ComputerName localhost -Classname Win32_PhysicalMemory).capacity

No comments: