Capturing Packets Natively in Microsoft Windows

When having trouble installing Wireshark, Microsoft’s built in packet capture command netsh can be used.

Tony Fortunato

March 19, 2020


I’ve been there before. I wanted to capture packets from someone’s Windows computer, and I couldn’t install Wireshark for a variety of reasons.

Then I go down the rabbit hole of options: SPAN, hub, TAP, etc. Each option has its own pros and cons that you need to determine on the fly for each scenario. Even the ‘portable’ version of Wireshark isn’t entirely portable, and you may run into challenges trying to run it.

After some research, and testing, I’ve decided to use Microsoft’s built in packet capture commands and no, I’m not referring to Network Monitor. This is a simple netsh command to start and stop a capture.

Most of the details are in the video, but here’s the summary of some common commands

To display which interfaces Windows can use and their identification:

netsh trace show interfaces

To capture 11 MB from your Wi-Fi interface

netsh trace start capture=yes CaptureInterface=”Wi-Fi” tracefile=f:tracestrace.etl” maxsize=11

Check your capture status

netsh trace show status

To stop your capture

netsh trace stop

Capture 11 MB from your Wi-Fi interface to and from host

Netsh trace start capture=yes CaptureInterface="Wi-Fi " IPv4.Address=" maxsize=11

After you have your packets captured scoot over to and download etl2pcapng. Then unzip in any folder and you’re ready to convert those etl files to pcapng.

Hope that helps you and happy packet hunting.

About the Author(s)

Tony Fortunato

Sr Network Performance Specialist

Tony Fortunato is a network performance expert who has been designing, implementing and troubleshooting networks since 1989. His company, The Technology Firm, provides clients of all sizes with services ranging from project management, network design, consulting, troubleshooting, designing custom-designed training courses, and assisting with equipment installation. Tony's experience in networking started with financial trading floor networks and ISPs, where he learned to integrate and support equipment from various vendors. Tony has taught and presented at numerous colleges and universities, public forums and private classes. He blogs frequently at NetworkDataPediaand has a popular YouTube channel.

Stay informed! Sign up to get expert advice and insight delivered direct to your inbox

You May Also Like

More Insights