Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script performance logging

$
0
0

How do i script this into powershell

Mkdir  C:\temp\ADPERF\Lsass-Log.blg

 

logman.exe create counter Lsass-Log -o "C:\temp\ADPERF\Lsass-Log.blg" -c "\Netlogon(*)\*" "\DirectoryServices(*)\*" "\Security System-Wide Statistics(*)\*" "\Cache(*)\*" "\LogicalDisk(*)\*""\Memory(*)\*" "\Network Interface(*)\*" "\Objects(*)\*" "\Paging File(*)\*" "\PhysicalDisk(*)\*" "\Process(*)\*" "\Processor(*)\*" "\Redirector(*)\*" "\Server(*)\*""\Server Work Queues(*)\*" "\System(*)\*" -f bincirc -max 500 -si 120 -v mmddhhmm -ow

 

logman start Lsass-Log


Viewing all articles
Browse latest Browse all 15028

Trending Articles