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
--------------------------------
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
--------------------------------