This is an old revision of the document!
netsh trace start capture=yes Ethernet.Type=IPv4 IPv4.Address=<ip> tracefile=<filepath>\<filename>.etl
You have to load the etl file to “Microsoft Network Monitor” and export it to cap.
netsh trace start capture=yes protocol=17
You can make it persistent, e.g. if you want to capture the boot:
netsh trace start persistent=yes capture=yes tracefile=c:\trace.log
To stop enter
netsh trace stop
Capture ICMP traffic:
netsh trace start capture=yes protocol=1 tracefile=c:\temp\trace.etl fileMode=single maxSize=500
More information: https://www.computertechblog.com/capture-network-traffic-with-netsh-trace-windows-command/