netsh interface set interface “NAME OF INTERFACE” DISABLE
netsh interface set interface “NAME OF INTERFACE” ENABLE
Example
netsh interface set interface “Wireless Network Connection” DISABLE
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.