出于计算机网络或系统安全的考虑,如果较长时间不使用办公电脑,但又没必要关机的情况下,我一般会采取禁用网卡的方式。几条命令如下:
查询计算机上所有的网卡(包括虚拟网卡):
netsh interface show interface
禁用网卡:
netsh interface set interface “以太网” disabled
启用网卡:
netsh interface set interface “以太网” admin=enable
出于计算机网络或系统安全的考虑,如果较长时间不使用办公电脑,但又没必要关机的情况下,我一般会采取禁用网卡的方式。几条命令如下:
查询计算机上所有的网卡(包括虚拟网卡):
netsh interface show interface
禁用网卡:
netsh interface set interface “以太网” disabled
启用网卡:
netsh interface set interface “以太网” admin=enable