How to get the CPU utilization of remote machine from command prompt
Use below command if you want to get the CPU utilization of remote machine from command prompt. It’s very useful if you don’t want to spend time in logging on to the server to verify the stats. Needless to say, replace RemoteMachine with your remote machine name in below command.
typeperf “\\RemoteMachine\processor(_Total)\% Processor Time”
Refer to my old article to know more about typeperf
Happy Learning…,
Sitaram Pamarthi
You can also very easily build your own performance monitor in C++
Windows C++ Get CPU and Memory Utilisation With Performance Counters
Hi,
Using the command provided, it is possible to get data from Local machine only.
But when tried with remote machine, it returns following error:
Error: No valid counters.
Command used:
typeperf “\\\Process(*)\% Processor Time” -sc 1
Please help me out in this issue.
Hey Ramesh,
Let’s isolate the problem this way. Execute this command on the remote machine locally and see if it returns any thing. If the comman works fine locally, then we have some thing to troubleshoot with remote connection.
Make you sure that you are having admin rights on remote machine while running this command. A domain admin is preferred for ideal results.
Seems like that you’ve put lots of hard work into your article and I require much more of these on the net these days. I sincerely got a kick from your post. I don’t really have significantly to express in response, I only wanted to comment to reply amazing work.