PDA

View Full Version : Finding Ram Size from Registry (All)



haachee
07-03-2002, 08:15 PM
How can you determine the Memory Size from the Registry?

reghakr
07-03-2002, 11:39 PM
haachee,

I don't think it's listed in the registry. It is in the BIOS.

Try hitting F2 or the Del key on startup to access the BIOS.

report_2
07-04-2002, 12:08 AM
Go to Start, Run, type in "command" without the quotation marks and click on OK.

In the DOS window type in "mem" w/o quotes and look at the free memory total.

(Pat O'B introduced me to this one)

BertImmenschuh
07-04-2002, 12:08 AM
RAM size is retrieved dynamically from the BIOS and displayed in the Properties of My Computer and in System Information in System Tools.

haachee
07-09-2002, 10:53 PM
Actually,

If you run this perl script it will get the RAM from the registry where $Machine is the machine you want to connect to:

if ($key = $Registry->Connect ($Machine,"LMachine/Hardware/ResourceMap/System Resources/Physical Memory/"))
{

$RAM = ceil ((unpack "L*", $key->GetValue('.Translated'))[-1] /1024/ 1024 + 16);
print "Ram = $RAM\n";
}
else { print "Couln't open $Registry\n";}

BertImmenschuh
07-10-2002, 02:20 AM
Sorry, I didn't see the mention of getting it from a network machine.

bdragon
07-11-2002, 03:47 PM
HKLM\Hardware\ResourceMap does not exsist in Win98.

But I think you are right about it being there. There is an entry for CPUClockSpeed. (it's in HKCU\Software\Microsoft\Scrunch and HKU\Software\Microsoft\Scrunch)

I think it's just a matter of finding it.

Give me 24hrs. to hunt it down.

bdragon
07-12-2002, 05:06 PM
Well... I don't see anything obvious.

That's not to say it's not encoded in some obscure key though.