Netsh Commands for Windows Sockets (WINSOCK)
Updated: February 8, 2008
Applies To: Windows Server 2008
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
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:
Winsock Catalog Provider Entry ------------------------------------------------------
Entry Type:
Base Service Provider
Description:
MSAFD Tcpip [UDP/IP]
Provider ID:
{E70F1AA0-AB8B-11CF-8CA3-00805F48A192}
Provider Path:
%SystemRoot%\system32\mswsock.dll
Catalog Entry ID:
1002
Version:
2
Address Family:
2
Max Address Length:
16
Min Address Length:
16
Socket Type:
2
Protocol:
17
Protocol Chain Length
1
Winsock Catalog Provider Entry ------------------------------------------------------
Entry Type:
Base Service Provider
Description:
MSAFD Tcpip [RAW/IP]
Provider ID:
{E70F1AA0-AB8B-11CF-8CA3-00805F48A192}
Provider Path:
%SystemRoot%\system32\mswsock.dll
Catalog Entry ID:
1003
Version:
2
Address Family:
2
Max Address Length:
16
Min Address Length:
16
Socket Type:
3
Protocol:
0
Protocol Chain Length:
1
Winsock Catalog Provider Entry ------------------------------------------------------
Entry Type:
Base Service Provider
Description:
MSAFD Tcpip [TCP/IPv6]
Provider ID:
{F9EAB0C0-26D4-11D0-BBBF-00AA006C34E4}
Provider Path:
%SystemRoot%\system32\mswsock.dll
Catalog Entry ID:
1004
Version:
2
Address Family:
23
Max Address Length:
28
Min Address Length:
28
Socket Type:
1
Protocol:
6
Protocol Chain Length:
1
Master Technician Technology Services