?
Solved

Remotely Check RAM Type/Speed

Posted on 2011-02-10
4
Medium Priority
?
1,508 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 56

Accepted Solution

by:
Bill Prew earned 1000 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 56

Expert Comment

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

~bp
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/A_266-VBScri…
Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

801 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