Solved

Remotely Check RAM Type/Speed

Posted on 2011-02-10
4
1,472 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 53

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 53

Expert Comment

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

~bp
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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