$ErrorActionPreference = 'Continue' $etl = 'C:\Apache24\htdocs\.codex_tmp\airmax_http_trace.etl' $txt = 'C:\Apache24\htdocs\.codex_tmp\airmax_http_trace.txt' & pktmon.exe stop 2>$null | Out-Null & pktmon.exe filter remove | Out-Null & pktmon.exe filter add AirMaxHttp -i 10.30.99.22 -t TCP -p 80 | Out-Null & pktmon.exe start --capture --comp nics --pkt-size 0 --file-name $etl | Out-Null try { Start-Sleep -Milliseconds 500 & curl.exe -k -sS -o NUL --connect-timeout 20 --max-time 30 'http://10.30.99.22/' } finally { & pktmon.exe stop | Out-Null & pktmon.exe etl2txt $etl --out $txt --timestamp --brief | Out-Null } Get-Content -LiteralPath $txt