Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello All, I am writing a script that will get all important hardware/system info for a remote server, but I can't figure out how to access the physical memory value in the registry (HKLM/HARDWARE/RESOURCEMAP/System Resources/Physical Memory/). The value for this key is listed as .Translated:REG_RESOURCE_LIST. If I'm supposed to be looking somewhere else or if there is another way to grab the RAM size from the server please let me know. I am currently using the Win32::TieRegistry module. Thanks!

Replies are listed 'Best First'.
Re: Win32 Registry and Physical Memory
by Moonie (Friar) on Jun 07, 2002 at 18:09 UTC
    You might want to look at Win32::AdminMisc. There's a function called GetMemoryInfo() - which I think would solve your problem.

    - Moon
Re: Win32 Registry and Physical Memory
by Rex(Wrecks) (Curate) on Jun 07, 2002 at 18:10 UTC
    Win32::AdminMisc is what you are looking for.

    "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
      Thanks for the quick responses, but the Win32::AdminMisc::GetMemoryInfo function only works locally (unless I am missing something). I need it to hit remote machines. :(