开发者

how to get the Ram Speed?

开发者 https://www.devze.com 2023-01-04 13:36 出处:网络
hi i need to find out the RAM Speed...anybody 开发者_如何学编程help meI would use WMI. This will give you speed and many more parameters:

hi i need to find out the RAM Speed...anybody 开发者_如何学编程help me


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 


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

0

精彩评论

暂无评论...
验证码 换一张
取 消