Getting RAM information

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

--------------------------------
 
R

reverand

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top