[[windows_wiki:batch_-_disable_renable_network_interface_oneliner]]

Batch - Disable Renable Network Interface Oneliner

This is a handy oneliner to disable and re-enable the network interface on a Windows box, handy if you don't have physical access or LOM.

Must be run as Administrator

netsh interface set interface "Local Area Connection" admin=disable && netsh interface set interface "Local Area Connection" admin=enable
  • windows_wiki/batch_-_disable_renable_network_interface_oneliner.txt
  • Last modified: 2019/05/26 03:50
  • (external edit)