Skip to content

How-ToOS

How to Use Pktmon, Windows' Built-In Packet Capture Tool

Windows 10 and 11 include Packet Monitor (pktmon), a free command-line tool that captures and counts network traffic and reports packets Windows drops. We explain how to add filters, start a capture, check counters, stop it and convert the log to text or to pcapng for Wireshark.

By , Systems & Technical Editor

5 min read

How to Use Pktmon, Windows' Built-In Packet Capture Tool

If you want to see what your PC is actually sending and receiving on the network, you don't have to install anything first. Windows 10 and 11 include Packet Monitor (pktmon), a command-line tool that can capture packets, count them and report packets that Windows itself drops, and it can save captures in a format Wireshark opens. This guide walks through a practical capture from start to finish, based on Microsoft's Packet Monitor documentation as of 29 November 2026.

What pktmon is and when it's useful

Microsoft describes Packet Monitor as an in-box, cross-component network diagnostics tool for Windows that can be used for packet capture, packet drop detection, packet filtering and counting. Microsoft says it's available in-box through the pktmon.exe command on Windows 10 and Windows Server 2019 (version 1809 and later), and its pktmon command pages list Windows 11 among the supported versions.

What makes it different from a typical capture tool is that it intercepts packets at multiple points in Windows' networking stack, not just at the network adapter. If a supported component drops a packet, pktmon reports the drop and, according to Microsoft, a drop reason such as MTU Mismatch or Filtered VLAN. It also keeps packet counters for each intercept point, which gives a quick overview without trawling through a log.

For home users, that makes it handy for questions like:

  • Is this app actually trying to connect to the server, or is nothing leaving the PC?

  • Are DNS lookups going out and coming back?

  • Is something on the PC dropping the traffic?

  • Can I grab a capture to open in Wireshark without installing a separate capture tool?

Before you start

Open Terminal or Command Prompt as administrator (right-click the Start button and choose Terminal (Admin)). To see every command, Microsoft recommends starting with:

pktmon /?

Each sub-command has its own help too, for example pktmon filter add help.

A privacy note: a capture can contain the contents of your traffic, not just addresses. By default pktmon logs the first 128 bytes of each packet, which Microsoft says should include the headers of most packets. Treat capture files as private and be careful who you share them with.

Step 1: Add filters first

Microsoft strongly recommends applying filters before you start, because capturing all traffic can make the output too noisy to analyse. Filters can match MAC addresses, IP addresses, ports, EtherType, transport protocol and VLAN ID. A few rules to know:

  • A packet is reported if it matches all the conditions in at least one filter.

  • Up to 32 filters can be active at once.

  • pktmon doesn't distinguish between source and destination for MAC, IP or port filters, so -p 53 matches traffic to or from port 53.

Microsoft's own example captures ICMP traffic to or from one address, plus anything on port 53 (DNS):

pktmon filter add -i 10.0.0.10 -t icmp
pktmon filter add -p 53

You can also match TCP flags. This filter, from Microsoft's documentation, captures SYN packets (connection attempts) sent or received by one IP address:

pktmon filter add -i 10.0.0.10 -t tcp syn

Replace the address with the server you're troubleshooting. Check what's active with pktmon filter list, and clear everything with pktmon filter remove, which Microsoft notes removes all packet filters.

Step 2: Start the capture

The basic command enables packet capture and packet counters:

pktmon start --capture

The short form is pktmon start -c. Useful options from Microsoft's syntax page:

Option

What it does

Default

--comp nics

Capture only at network adapters rather than every component

All components

--type drop

Capture only dropped packets (flow for flowing packets only)

All

--pkt-size 0

Log the whole of every packet

128 bytes

-f <name>

Log file name

PktMon.etl

-s <MB>

Maximum log file size

512 MB

-m <mode>

Logging mode: circular, multi-file, real-time or memory

Circular

--counters-only

Count packets without logging them

Off

The logging mode matters for longer captures. In the default circular mode, new events overwrite the oldest when the log is full. Multi-file starts a new numbered file each time instead, so nothing is lost, but Microsoft warns you to watch storage use. Real-time prints packets on screen and creates no log file; press Ctrl+C to stop. Memory keeps everything in a memory buffer and writes it to a file when you stop, which Microsoft suggests for very noisy scenarios where other modes might lose traffic.

A sensible home capture of one problem looks like this:

pktmon filter remove
pktmon filter add -p 53
pktmon start -c --comp nics -f dns-test.etl

Step 3: Reproduce the problem and check counters

Now do the thing that fails: launch the game, open the website, connect the app. While the capture is running, Microsoft suggests querying the counters to confirm the expected traffic is present and get a high-level view of how it flowed through the machine:

pktmon counters

If the counters stay at zero, either your filter doesn't match the traffic you expected or the app isn't sending anything at all, which is a useful clue in itself. If you suspect your firewall, compare with our guide on how to block or allow an app in Windows Firewall.

Step 4: Stop and convert the log

Stop all data collection with:

pktmon stop

pktmon writes logs in ETL format. You have two main ways to read them.

As text: convert the log with

pktmon etl2txt dns-test.etl

Microsoft says packet data in the text output is shown in TCPDump format. Each packet appears several times, once for each point in the stack where it was seen. Packets with the same PktGroupId and PktNumber are the same packet, and the Appearance value counts up for each snapshot. For dropped packets, the word "drop" appears before the relevant lines, along with a dropReason. The component list and active filters are printed at the bottom of the log.

For Wireshark: convert to pcapng with

pktmon etl2pcap dns-test.etl --out dns-test.pcapng

Microsoft notes some important limits of pcapng output. Dropped packets aren't included by default, and the pcapng format can't distinguish a flowing packet from a dropped one, or show which component captured a packet. Its suggestion is to make two files, one with all packets and one with only drops:

pktmon etl2pcap dns-test.etl --out all.pcapng
pktmon etl2pcap dns-test.etl --drop-only --out drops.pcapng

You can also limit the conversion to one component with --component-id <id>. Open the result in Wireshark or any other pcapng analyser.

Tidy up afterwards

When you've finished, run pktmon filter remove so old filters don't confuse the next capture, and delete capture files you no longer need.

Where pktmon fits

pktmon is excellent for "is the traffic leaving, arriving or being dropped?" questions. It won't tell you about latency along the internet path; for that, Windows' tracert and pathping commands are the better tools, and our high ping and packet loss fixes cover the wider checklist. To see what else is on your home network, read how to see devices on your network in Windows 11, and for more free utilities see our best free network troubleshooting tools.

The bottom line

Pktmon is a free, built-in way to capture and count network traffic on Windows 10 and 11, with the bonus of reporting packets Windows drops. Add a filter first, start with pktmon start -c, reproduce the problem, check pktmon counters, then stop and convert the log to text or to pcapng for Wireshark. Treat capture files as private.

Sources

  1. 01Microsoft Learn, Packet Monitor (Pktmon)
  2. 02Microsoft Learn, Pktmon syntax and formatting
  3. 03Microsoft Learn, pktmon start
  4. 04Microsoft Learn, pktmon filter
  5. 05Microsoft Learn, pktmon etl2pcap

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Emulators for PC in 2026

Best Picks

Best Free Emulators for PC in 2026

The best free emulators for PC in 2026: RetroArch for retro systems in one app, PCSX2 for PS2, Dolphin for GameCube and Wii, DuckStation for PS1 and PPSSPP for PSP. We compare the systems each covers, licences, BIOS needs, hardware requirements and features from each project's official site, and explain how to stay legal with your own games and BIOS dumps.

Hannah Vance6 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

Versus

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

pyVideoTrans and VideoLingo are popular open-source tools for translating and dubbing videos with AI on your own PC. Using each project's official docs, we compare installation, speech recognition, translation engines, dubbing voices, offline use, GPU support and licences, and say which suits which job.

Callum Reid4 min