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.


1 Answer 1

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
    Commented May 21, 2015 at 19:27
  • I added the /node parameter, it's a bit rudimentary but I think it covers the question.
    – HoD
    Commented May 22, 2015 at 7:36
  • 9
    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
    Commented Jan 28, 2016 at 16:21
  • 1
    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
    Commented Apr 18, 2018 at 12:24
  • @Dominique try typeperf instead
    – airstrike
    Commented Apr 26, 2020 at 16:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .