Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
Please clarify: What operating system are you using? – Stefan Lasiewski Jan 11 '12 at 19:05
Assuming a system > Windows 2000 since cmd is tagged. – hydroparadise Jan 11 '12 at 19:09
Although cmd could just be short for command or command line, which could be anything. – Stefan Lasiewski Jan 11 '12 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 '12 at 20:49
up vote 6 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.

share|improve this answer
+1 -- the second command listed under the capacity line. – Jeff Ferland Jan 11 '12 at 19:16
On XP I had to query "memlogical", and get the "TotalPhysicalMemory" value. "memorychip" doesn't seem to exist on XP. – David Dec 15 '12 at 0:37
Thanks for the feedback ;) – Tim Dec 17 '12 at 21:54

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
share|improve this answer
does this really work if wmi is non functional on the remote device? – tony roth Jan 11 '12 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 '12 at 2:00

To limit it to the Total Physical Memory and Available memory, you may use:

systeminfo /s:hostname | findstr "Physical"
share|improve this answer

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.

share|improve this answer

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

share|improve this answer

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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