Netsh Commands for Trace

 

Applies To: Windows Server 2012

For information about Netsh Trace commands for computers running Windows® 7 and Windows Server® 2008 R2, see Netsh Commands for Trace in the Windows Server 2008 and Windows Server 2008 R2 technical library on TechNet.

On computers running Windows Server® 2012 and Windows® 8, network trace is a command context within Netsh that extends the Network Diagnostic Framework (NDF) to provide an efficient method to troubleshoot network connectivity issues. Network trace enables you to collect targeted diagnostic and event information by utilizing Event Tracing for Windows (ETW) to log network events and packets in a single file.

To run these commands from the command prompt, you must either enter the netsh trace context or prepend the context to the command. You can enter the netsh trace context by typing netsh and pressing ENTER, and then typing trace and pressing ENTER. Alternately, if you are at the command prompt but have not entered the trace context, you can type:

netsh trace command

Where command is the command that you want to run, including all of the required parameters for the command, and any optional parameters that you want to include.

Learn More