我正在寻找一种在远程系统上创建具有一组特定计数器的二进制循环日志文件的方法。
我知道这可以使用 logman 和 psexec 来完成,但我希望使用 VB.NET 找到一个更简洁的示例,而不是打破并运行外部程序。
这是我要替换的命令行:
psexec \\%1 logman create counter BlackBox -f bincirc -max 500 -si 00:00:15 -b 01/01/2011 00:00:00 --v -o "C:\PerfLogs\BlackBox" -c "\Cache\*" "\LogicalDisk(*)\*" "\Memory\*" "\Network Interface(*)\*" "\Paging File(*)\*" "\PhysicalDisk(*)\*" "\Process(*)\*" "\Processor(*)\*" "\Redirector\*" "\Server Work Queues(*)\*" "\Server\*" "\System\*" "\Objects\*"
在此先感谢您的帮助。