How to remotely get computer cpu and memory usage?

11

2

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.

Alexander

Posted 2015-05-21T12:49:45.450

Reputation: 233

Answers

20

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.

HoD

Posted 2015-05-21T12:49:45.450

Reputation: 2 282

Can you elaborate on how this can be used to get info for other systems on the network? – Karan – 2015-05-21T19:27:04.997

I added the /node parameter, it's a bit rudimentary but I think it covers the question. – HoD – 2015-05-22T07:36:04.620

8Remember 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 – 2016-01-28T16:21:32.067

1I 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 – 2018-04-18T12:24:29.893