You can use commands in the netsh winsock context to configure Windows Sockets. The Netsh commands for winsock can be run manually at the netsh prompt or in scripts and batch files.

To run these commands from the command prompt, you must either enter the netsh winsock context or prepend the context to the command. For example, if you are at the command prompt but have not typed netsh and then winsock to enter the netsh winsock context, you must type:

netsh winsock command

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

This section contains the following commands.

For information on how to interpret netsh command syntax, see Formatting Legend.

Netsh winsock command reference

The following entries provide details for each command.

audit trail

Shows the audit trail of Layered Service Providers (LSPs) that have been installed and uninstalled.

Syntax

audit trail

remove provider

Removes a Winsock Layered Service Provider (LSP) from the system.

Syntax

remove provider catalog_id

Parameters
catalog_id

Required. Specifies the catalog identifier of the Layered Service Provider (LSP) that you want to remove from the system.

reset

Restores the Winsock Catalog to a clean state and uninstalls all Winsock Layered Service Providers.

Syntax

reset

Remarks

The reset command restores the Winsock Catalog to a clean state. After the command is run, all Winsock LSPs that were previously installed must be reinstalled. This command does not affect Winsock Name Space Provider entries.

show catalog

Displays the contents of the Winsock Catalog.

Syntax

show catalog

Remarks

Following is an example output of the show catalog command:

  Copy Code
Winsock Catalog Provider Entry
------------------------------------------------------

  Copy Code
Entry Type:
  Copy Code
Base Service Provider
  Copy Code
Description:
  Copy Code
MSAFD Tcpip [UDP/IP]
  Copy Code
Provider ID:
  Copy Code
{E70F1AA0-AB8B-11CF-8CA3-00805F48A192}
  Copy Code
Provider Path:
  Copy Code
%SystemRoot%\system32\mswsock.dll
  Copy Code
Catalog Entry ID:
  Copy Code
1002
  Copy Code
Version:
  Copy Code
2
  Copy Code
Address Family:
  Copy Code
2
  Copy Code
Max Address Length:
  Copy Code
16
  Copy Code
Min Address Length:
  Copy Code
16
  Copy Code
Socket Type:
  Copy Code
2
  Copy Code
Protocol:
  Copy Code
17
  Copy Code
Protocol Chain Length
  Copy Code
1
  Copy Code
Winsock Catalog Provider Entry
------------------------------------------------------

  Copy Code
Entry Type:
  Copy Code
Base Service Provider
  Copy Code
Description:
  Copy Code
MSAFD Tcpip [RAW/IP]
  Copy Code
Provider ID:
  Copy Code
{E70F1AA0-AB8B-11CF-8CA3-00805F48A192}
  Copy Code
Provider Path:
  Copy Code
%SystemRoot%\system32\mswsock.dll
  Copy Code
Catalog Entry ID:
  Copy Code
1003
  Copy Code
Version:
  Copy Code
2
  Copy Code
Address Family:
  Copy Code
2
  Copy Code
Max Address Length:
  Copy Code
16
  Copy Code
Min Address Length:
  Copy Code
16
  Copy Code
Socket Type:
  Copy Code
3
  Copy Code
Protocol:
  Copy Code
0
  Copy Code
Protocol Chain Length:
  Copy Code
1
  Copy Code

Winsock Catalog Provider Entry
------------------------------------------------------

  Copy Code
Entry Type:
  Copy Code
Base Service Provider
  Copy Code
Description:
  Copy Code
MSAFD Tcpip [TCP/IPv6]
  Copy Code
Provider ID:
  Copy Code
{F9EAB0C0-26D4-11D0-BBBF-00AA006C34E4}
  Copy Code
Provider Path:
  Copy Code
%SystemRoot%\system32\mswsock.dll
  Copy Code
Catalog Entry ID:
  Copy Code
1004
  Copy Code
Version:
  Copy Code
2
  Copy Code
Address Family:
  Copy Code
23
  Copy Code
Max Address Length:
  Copy Code
28
  Copy Code
Min Address Length:
  Copy Code
28
  Copy Code
Socket Type:
  Copy Code
1
  Copy Code
Protocol:
  Copy Code
6
  Copy Code
Protocol Chain Length:
  Copy Code
1
  Copy Code