How to Start Perfmon from command line with counters prefilled

set srv=servername

logman.exe create counter -n %srv% -f bincirc -si 00:00:01 -o “c:\perflogs\%srv%-Perf.blg” -v mmddhhmm -max 300 -c “\\%srv%\LogicalDisk(*)\*” “\\%srv%\Memory\*” “\\%srv%\.NET CLR Memory(*)\*” “\\%srv%\Cache\*” “\\%srv%\Network Interface(*)\*” “\\%srv%\Paging File(*)\*” “\\%srv%\PhysicalDisk(*)\*” “\\%srv%\Processor(*)\*” “\\%srv%\Processor Information(*)\*” “\\%srv%\Process(*)\*” “\\%srv%\Redirector\*” “\\%srv%\Server\*” “\\%srv%\System\*” “\\%srv%\Server Work Queues(*)\*” | then press enter

logman servername start

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: