Windows 10 and 11: pktmon
Packet Monitor is built into Windows. In PowerShell or Command Prompt opened as Administrator, start recording:
pktmon start --capture --comp nics --pkt-size 0 --file-name capture.etl
Reproduce the activity you need, then stop and convert the log to pcapng:
pktmon stop
pktmon etl2pcap capture.etl --out capture.pcapng
--comp nics records each
packet once, at the network adapter, and --pkt-size 0 keeps
whole packets instead of the first 128 bytes. Add --file-size
20 to cap the log at 20 MB; once it is full, the oldest packets are overwritten.
Convert ETL to PCAP with pktmon: filters, long captures and duplicate packets