Solved

Remotely Check RAM Type/Speed

Posted on 2011-02-10
4
1,448 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
  • 2
  • 2
4 Comments
 
LVL 51

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 51

Expert Comment

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

~bp
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now