netsh 是windows系统本身提供的功能强大的网络配置命令行工具。
REM 显示配置信息
netsh interface show interface
netsh interface ip show config
netsh interface ip show wins
netsh interface portproxy show all
REM 禁用本地连接
netsh interface set interface name=本地连接 admin=DISABLED connect=DISCONNECTED
REM 启用本地连接
netsh interface set interface name=本地连接 admin=ENABLED connect=CONNECTED
REM 显示配置信息
netsh interface show interface
netsh interface ip show config
netsh interface ip show wins
netsh interface portproxy show all
REM 禁用本地连接
netsh interface set interface name=本地连接 admin=DISABLED connect=DISCONNECTED
REM 启用本地连接
netsh interface set interface name=本地连接 admin=ENABLED connect=CONNECTED
本文介绍如何利用Windows内置的netsh命令进行网络配置,包括显示网络接口配置信息、禁用及启用本地连接等操作。

被折叠的 条评论
为什么被折叠?



