On computers running Windows Server® 2008 R2 and Windows® 7, 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.