InterviewSolution
Saved Bookmarks
| 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. USE the command: Get-WmiObject -computerName COMPNAME -class Win32_ComputerSystem 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 |
|