大网数据广告活动
Windows排障命令

netsh winsock

· 52CE 我爱测

The netsh winsock command manages the Windows Sockets (Winsock) API network communication in Windows.

The netsh winsock command manages the Windows Sockets (Winsock) API, which is responsible for network communication between applications and network services.

Syntax

netsh winsock [audit | dump | help | remove | reset | set | show | ?]
netsh winsock audit trail
netsh winsock dump
netsh winsock remove provider <catalog id>
netsh winsock reset
netsh winsock set autotuning <on|off>
netsh winsock show <autotuning> <catalog>

Parameters

Command Description
winsock audit trail Displays the audit trail of Layered Service Providers (LSP) that are installed and uninstalled.
winsock dump Creates a script containing the current Winsock configuration. The script can be saved to a file and used to restore settings if they're altered or need to be replicated on another system.
winsock remove provider <catalog id> Removes a specific Winsock LSP from the system using its catalog ID. This ID can be found when you run winsock show catalog. The Namespace Providers are presented as a GUID rather than a catalog ID.
winsock reset Resets the Winsock catalog to a clean state, removing any custom LSPs to resolve network problems caused by corrupted Winsock settings. It doesn't affect Winsock Name Space Provider entries.
winsock set autotuning This command toggles Winsock send autotuning, which enables dynamic send buffering to improve overall network throughput. Options are on or off.
winsock show autotuning - Displays whether Winsock send autotuning is currently enabled or disabled. catalog - Displays the contents of the Winsock catalog, listing all registered Winsock LSPs and namespace providers.
help or ? Displays a list of commands and their descriptions in the current context.

Examples

To view the audit trail of LSPs, run the following command:

netsh winsock audit trail

To remove a specific Winsock LSP using its catalog ID, run the following command:

netsh winsock remove provider <catalog_id>

To enable Winsock send autotuning for better throughput, run the following command:

netsh winsock set autotuning on

To display the contents of the Winsock catalog, run the following command:

netsh winsock show catalog

See also

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 08/12/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。