remotely check amount of RAM on a computer using command line
Solution 1
Requires XP or later system: wmic memphysical list full
, also wmic memorychip list full
might provide you with some info you are looking for.
Solution 2
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.
Solution 3
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
Solution 4
tasklist /s <system> /u <username> /p <password>
for current usage
systeminfo /s <system> /u <username> /p <password>
for specs on system including ram.
Related videos on Youtube
Patrick
Updated on September 18, 2022Comments
-
Patrick over 1 year
How would I remotely check the amount of RAM on a computer using command line? (Windows XP and/or windows server 2003)
-
loislo over 12 years+1 -- the second command listed under the
capacity
line. -
David over 11 yearsOn XP I had to query "memlogical", and get the "TotalPhysicalMemory" value. "memorychip" doesn't seem to exist on XP.