Use it to capture on a Windows server where installing Wireshark is not allowed.
Packet Capture
Windows can capture packets without extra software using pktmon (Windows 10 1809 and later, Server 2019 and later). The capture is saved as an ETL file and converted to pcapng for Wireshark.
1. pktmon filter remove, then pktmon filter add -i <ip> -p <port>.
2. pktmon start --capture --pkt-size 0.
3. Reproduce the problem and note the time.
4. pktmon stop, then pktmon etl2pcap PktMon.etl -o capture.pcapng.
5. Open in Wireshark and read the conversation.
old filters cleared → filter for the flow added → capture started with full packets → problem reproduced → stopped → converted to pcapng → conversation readable in Wireshark
Context & applicabilityCommon mistakes · platform/version boundaries
- Capturing for hours without filters, filling the disk.
- Forgetting to stop
netsh trace(it continues until stopped or reboot withpersistent=yes). - Capturing on the wrong interface (VPN vs physical).
- Sharing captures that contain passwords or tokens.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Add filters before starting, or the file grows fast; filters stay until removed (pktmon filter remove). Use --pkt-size 0 to keep whole packets. Convert with pktmon etl2pcap before opening in Wireshark.
pktmon filter add -i <ip> -p <port>— capture only that address and port.pktmon filter list— filters in force.pktmon start --capture --pkt-size 0— start, full packets.pktmon stop— stop; writes PktMon.etl.pktmon etl2pcap PktMon.etl -o capture.pcapng— convert for Wireshark.pktmon filter remove— clear the filters afterwards.
ReferenceHow it works1 section · depth on demand
In depth
Built-in packet capture without installing Wireshark:
pktmon start --capture --pkt-size 0 --comp nics -f C:\Temp\cap.etl
pktmon stop
pktmon etl2pcap C:\Temp\cap.etl --out C:\Temp\cap.pcapng
netsh trace start capture=yes tracefile=C:\Temp\trace.etl maxsize=512
netsh trace stop
pktmon (Windows 10 1809+) also shows where packets were dropped inside the stack (pktmon counters, drop reasons) — very useful when a firewall or filter driver silently discards traffic. Convert ETL to pcapng for Wireshark.
ReferenceConfiguration & state2 sections · depth on demand
Commands
pktmon start --capture --pkt-size 0 -f C:\temp\cap.etl
pktmon stop
pktmon etl2pcapng C:\temp\cap.etl -o C:\temp\cap.pcapng # open in Wireshark
netsh trace start capture=yes tracefile=C:\temp\trace.etl maxsize=512
netsh trace stop
Documented example, not captured output. pktmon filters (pktmon filter add -i 10.0.0.5 -p 443) keep files small. Wireshark with Npcap is the alternative when installing software is allowed.
Converting ETL to PCAP
netsh trace and pktmon create .etl files. Convert them for Wireshark:
pktmon etl2pcap capture.etl --out capture.pcapng
Microsoft's etl2pcapng tool does the same for netsh trace files. Wireshark can also run on the host with Npcap if installation is allowed.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Troubleshooting → Packet Capture. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · confidence 94%