Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get the Ram Speed?

Tags:

c#

hi i need to find out the RAM Speed...anybody help me

like image 881
mathirengasamy Avatar asked Sep 06 '25 21:09

mathirengasamy


2 Answers

I would use WMI. This will give you speed and many more parameters:

On Error Resume Next 
strComputer = "." 
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 
Set colItems = objWMIService.ExecQuery("Select * from Win32_PhysicalMemory") 
For Each objItem in colItems 

Wscript.Echo "Bank Label: " & objItem.BankLabel 
Wscript.Echo "Capacity: " & objItem.Capacity 
Wscript.Echo "Data Width: " & objItem.DataWidth 
Wscript.Echo "Description: " & objItem.Description 
Wscript.Echo "Device Locator: " & objItem.DeviceLocator 
Wscript.Echo "Form Factor: " & objItem.FormFactor 
Wscript.Echo "Hot Swappable: " & objItem.HotSwappable 
Wscript.Echo "Manufacturer: " & objItem.Manufacturer 
Wscript.Echo "Memory Type: " & objItem.MemoryType 
Wscript.Echo "Name: " & objItem.Name 
Wscript.Echo "Part Number: " & objItem.PartNumber 
Wscript.Echo "Position In Row: " & objItem.PositionInRow 
Wscript.Echo "Speed: " & objItem.Speed 
Wscript.Echo "Tag: " & objItem.Tag 
Wscript.Echo "Type Detail: " & objItem.TypeDetail 

Next 
like image 171
DmitryK Avatar answered Sep 09 '25 04:09

DmitryK


Maybe this post answers your question? It is a question itself but it'll point you in the right direction (WMI is the way to go here).

like image 43
Colin Avatar answered Sep 09 '25 03:09

Colin