How would I remotely check the amount of RAM on a computer using command line? (Windows XP and/or windows server 2003)

link|improve this question

4  
Please clarify: What operating system are you using? – Stefan Lasiewski Jan 11 at 19:05
2  
Assuming a system > Windows 2000 since cmd is tagged. – hydroparadise Jan 11 at 19:09
Although cmd could just be short for command or command line, which could be anything. – Stefan Lasiewski Jan 11 at 19:23
windows xp and/or server 2003. I just forgot to post it, I'm so use to working with windows products. Also, I tagged cmd. Thanks Stefan for pointing that out. – Patrick Jan 11 at 20:49
feedback

5 Answers

up vote 5 down vote accepted

Requires XP or later system: wmic memphysical list full, also wmic memorychip list full might provide you with some info you are looking for.

link|improve this answer
+1 -- the second command listed under the capacity line. – Jeff Ferland Jan 11 at 19:16
feedback

systeminfo /s:hostname will give you some basic memory statics if WMI isn't available on a remote machine:

C:\>systeminfo /s:hostname

...

Total Physical Memory:     3,062 MB
Available Physical Memory: 2,116 MB
Virtual Memory: Max Size:  2,048 MB
Virtual Memory: Available: 1,996 MB
Virtual Memory: In Use:    52 MB
Page File Location(s):     C:\pagefile.sys
link|improve this answer
1  
does this really work if wmi is non functional on the remote device? – tony roth Jan 11 at 19:47
If I stop the Windows Management Instrumentation service on my Windows XP machine I can still run systeminfo against it successfully. Perhaps my test isn't good enough? – kce Jan 12 at 2:00
feedback

tasklist /s <system> /u <username> /p <password> for current usage systeminfo /s <system> /u <username> /p <password> for specs on system including ram.

link|improve this answer
feedback

If you have access to PowerShell (it only needs to be installed on a single workstation to run this from) you can do something like:

$computer = ComputerNameGoesHere
get-wmiobject Win32_ComputerSystem -computer $computer | 
select @{name="TotalPhysicalMemory(MB)";expression={($_.TotalPhysicalMemory/1mb)}}

You would need to either run the script as someone that can run WMI queries on remote machines (usually administrator) or work Get-Credential and -credential in there.

link|improve this answer
feedback

Here's a simple one:

run command line as administrative account (if in a domain)

SYSTEMINFO /S computername

There's all kinds of info including "Total Physical Memory:"

If you need to specify the user:

SYSTEMINFO /S system /U user
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.