11

I have multiple computers on my network (each of them running Windows 7), and want to remotely get the usage statistics (total CPU and memory usage of the computer) for them without actually having to log in to each and every one of them one by one.

Later I want to use this within a MATLAB script via cmd or batch files, so I prefer a programmatic check. I tried to look at windows Sysinternals, but didn't find anything useful.

19
wmic /node:HOSTNAME cpu get loadpercentage

This will give you the CPU load for a remote system.

wmic /node:HOSTNAME OS get FreePhysicalMemory

This will give you free memory for a remote system.

  • Can you elaborate on how this can be used to get info for other systems on the network? – Karan May 21 '15 at 19:27
  • I added the /node parameter, it's a bit rudimentary but I think it covers the question. – HoD May 22 '15 at 7:36
  • 8
    Remember to put the hostname in double quotes if you are just using a string and not a variable name. Otherwise you get the Invalid Global Switch error – TombMedia Jan 28 '16 at 16:21
  • I have an "access is denied" error message while trying this, and I don't want to mess with user settings. Is there a way getting this done without WMIC? – Dominique Apr 18 '18 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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