站内搜索

禁用或启用网卡的bat命令

  出于计算机网络或系统安全的考虑,如果较长时间不使用办公电脑,但又没必要关机的情况下,我一般会采取禁用网卡的方式。几条命令如下:

查询计算机上所有的网卡(包括虚拟网卡):
netsh interface show interface

禁用网卡:
netsh interface set interface “以太网” disabled

启用网卡:
netsh interface set interface “以太网” admin=enable

Copyright © XiakeShu.com 版权所有 | 备案号:浙ICP备11004787号-12