Getting RAM information

  • Thread starter Thread starter Jason Benway
  • Start date Start date
J

Jason Benway

what I'm looking for is how many ram slots the motherboard has and what size
sticks are currently installed.
this shows information about currently installed RAM, but not the unused
slots. Could someone please help finish the puzzle.

thanks,jb

I found this on MSDN:

----------------------------
strComputer = inputbox("Enter Computer Name")
'Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set oWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

sData = "[Physical Memory]" & vbCrLf
sData = sData & "Bank Label, Capacity, Description," _
& "DeviceLocator, DataWidth, FormFactor" & vbCrLf

for each memory in oWMI.InstancesOf("Win32_PhysicalMemory")
counter = counter + 1
sData = sData & memory.BankLabel & "," & CStr(memory.capacity) _
& "," & memory.Description & "," & memory.DeviceLocator _
& "," & memory.DataWidth & "," & memory.FormFactor & vbCrLf
next
wscript.echo counter
wscript.echo sData

--------------------------------
 
Set SystemSet = objService.ExecQuery("SELECT * FROM
Win32_PhysicalMemoryArray")
for each System in SystemSet
S = S & "Memory Slots: " & System.MemoryDevices &
VbCrLf
S = S & "Max Memory: " &
System.MaxCapacity/1024 & " Meg " & VbCrLf
next
 
Back
Top