
如何使用 Windows 批处理脚本禁用有线网络接口?
我需要使用什么命令?
答案1
要在 Windows 控制台中禁用接口,请在控制台中输入:
netsh interface set interface "My Interface Name " DISABLE
并启用它:
netsh interface set interface "My Interface Name " ENABLE
如何使用 Windows 批处理脚本禁用有线网络接口?
我需要使用什么命令?
要在 Windows 控制台中禁用接口,请在控制台中输入:
netsh interface set interface "My Interface Name " DISABLE
并启用它:
netsh interface set interface "My Interface Name " ENABLE