Enable Remote Perfmon
A. Open the elevated Command Prompt on one of the remote machines.
B. Then run the commands as mentioned below:
Logman create counter Perflog_Short -u DOMAIN\USERNAME * -f bincirc -v mmddhhmm -max 600 -c "\SERVERNAME\LogicalDisk(*)\" "\SERVERNAME\Memory\" "\SERVERNAME\Network Interface(*)\" "\SERVERNAME\Paging File(*)\" "\SERVERNAME\PhysicalDisk(*)\" "\SERVERNAME\Process(*)\" "\SERVERNAME\Redirector\" "\SERVERNAME\Server\" "\SERVERNAME\System\" "\SERVERNAME\Terminal Services\" "\SERVERNAME\Processor(*)\" "\SERVERNAME\Cache\" -si 00:00:01
Logman create counter Perflog_Long -u DOMAIN\USERNAME * -f bincirc -v mmddhhmm -max 600 -c "\SERVERNAME\LogicalDisk(*)\" "\SERVERNAME\Memory\" "\SERVERNAME\Network Interface(*)\" "\SERVERNAME\Paging File(*)\" "\SERVERNAME\PhysicalDisk(*)\" "\SERVERNAME\Process(*)\" "\SERVERNAME\Redirector\" "\SERVERNAME\Server\" "\SERVERNAME\System\" "\SERVERNAME\Terminal Services\" "\SERVERNAME\Processor(*)\" "\SERVERNAME\Cache\" -si 00:05:00
Replace the SERVERNAME with problem server name.
Replace DOMAIN/USERNAME with your domain name and domain admin credentials.
C. It will ask for your password.
D. Once the above command has been executed, we get a successful message on the Command Prompt.
E. Then run below commands:
Logman.exe start Perflog_Short for perfmon short and Logman.exe start Perflog_Long to start perfmon long, respectively.
F. Whenever the issue occurs on the server, please use the command Logman.exe stop Perflog_Short and Logman.exe stop Perflog_Long to stop the perfmon at the time of the issue before you reboot the problem machine.