Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Packet Capture

Direct answer

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.

When to use this

Use it to capture on a Windows server where installing Wireshark is not allowed.

First 30 seconds

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.

Operational verification

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
Common mistakes
Common mistakes
  • Capturing for hours without filters, filling the disk.
  • Forgetting to stop netsh trace (it continues until stopped or reboot with persistent=yes).
  • Capturing on the wrong interface (VPN vs physical).
  • Sharing captures that contain passwords or tokens.
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse it to capture on a Windows server where installing Wireshark is not allowed.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points

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.

Key checks
  • 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

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%
Confirmation

Confirm action

Continue?