Solved

Remotely Check RAM Type/Speed

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

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 52

Expert Comment

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

~bp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vbscript 8 82
Schedule Macro Modules to Run Daily at Specific times (Outlook 2010) 10 73
how to add field in my script 2 31
How to make an ADE file by code? 11 81
This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

864 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

21 Experts available now in Live!

Get 1:1 Help Now