' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Set wmi = GetObject("winmgmts:")
Set ramblocks = wmi.ExecQuery("SELECT * FROM Win32_PhysicalMemory")
For Each ramblock In ramblocks
   WScript.Echo ramblock.BankLabel & ": " & ramblock.Capacity & " bytes"
Next
Set nics = Nothing
Set wmi = Nothing
