Does anyone know of a way to output either individual processes' CPU utilization or the system's total CPU utilization at a given moment to a text file? I want to incorporate this into a batch file. I can do it in Windows XP with the "typeperf "\Processor(_Total)\% Processor Time" -sc 1" command, but the same parameters don't work in the Windows 2000 version, and I haven't been able to locate a help file for the 2k version.
I finally realized the issue. The counter name is the same for both the Windows 2000 and XP versions; however, being in a batch file meant that it needed two % characters in order to be properly piped to the typeperf command As far as the other commands possible, I realized that I could just open up perfmon and see what was listed under the "Add Counters" option; they work just as well under typeperf.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |