Solved

Remotely Check RAM Type/Speed

Posted on 2011-02-10
4
1,497 Views
Last Modified: 2012-08-13
Hi Experts,

I'm looking for a vbscript that can let me remotely check RAM speed and type on a machine on the network.
I already have a script to check the total memory on a remote machine, but i can't any information about how to check RAM speed and type though.
Please kindly give me some hints.
Thanks
0
Comment
Question by:aska1979
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 55

Accepted Solution

by:
Bill Prew earned 250 total points
ID: 34867811
Have you tried the Win32_PhysicalMemory class?

~bp
0
 

Author Comment

by:aska1979
ID: 34867934
this seems work.  however, please take a look at the code below
strComputer = InputBox("Enter Computer name", _
"Find Computer Memory", strComputer)
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery _
("Select * from Win32_PhysicalMemory")

For Each objComputer in colComputer
   speed = int(objComputer.Speed)
   Wscript.Echo "System Name: " & objComputer.Name _
   & vbCr & speed
Next


for example, my machine only has 2 memory modules, but it always return me a with 3 results while the last one is blank.  any idea?
0
 

Author Comment

by:aska1979
ID: 34868094
never mind .. i got it sorted out
thanks for pointing out the  Win32_PhysicalMemory class

the reason i am getting 4 results (not 3) is becoz there are total of 4 memory slots
0
 
LVL 55

Expert Comment

by:Bill Prew
ID: 34868100
Great, glad that was some help.

~bp
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question