1.

Solve : Remotely determine amount of RAM in a system?

Answer»

I am running Windows 7 Enterprise in a Domain environment, and would like to remotely determine the amount of RAM in client workstations. I need to do this unobtrusively (I would like to avoid disrupting the users, but don't need to hide my steps or presence). There are about 100 workstations.

Any ideas?

Thanks!
-darryl

(this seemed like the best place for the post, but perhaps it should have been somewhere in microsoft/windows. sorry.)Found it: http://system-admin.livejournal.com/2867.html

Quote

USE the command: Get-WmiObject -computerName COMPNAME -class Win32_ComputerSystem

(Replace COMPNAME with the computer you want to check.) It will SHOW you a LITTLE more than just the amount of memory INSTALLED, but that will be one of the members it returns.


Thanks anyway folks!
-darrylThank you for posting the solution that you found. I'm also happy to hear that you did get it sorted out.dworley's command is for Powershell, and to use that from a batch script see below... as before replace COMPNAME with the computer you want to check. Or use a variable.

Code: [Select]for /f "tokens=1-2 delims=: " %%A in ( ' powershell -Command Get-WmiObject -computerName COMPNAME -class Win32_ComputerSystem ^| find "TotalPhysicalMemory" ' ) do echo Computer COMPNAME has %%B BYTES RAM


Discussion

No Comment Found