' 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 cpus = wmi.ExecQuery("SELECT * FROM Win32_Processor")
For Each cpu In cpus
   Wscript.Echo cpu.DeviceId
   Wscript.Echo Trim(cpu.Name)
   Wscript.Echo cpu.Manufacturer
   Wscript.Echo cpu.Description
   Wscript.Echo cpu.MaxClockSpeed
Next
Set mems = wmi.ExecQuery("SELECT * FROM Win32_PhysicalMemory")
For Each mem In mems
   Wscript.Echo mem.BankLabel
   Wscript.Echo mem.Capacity
Next
