Windows

Disable the Wi-Fi connection from command line in Windows

Get the Interface Name: netsh interface show interface Enable the interface: netsh interface set interface “Interface Name” enable Disable the interface: netsh interface set interface “Interface Name” disable However, we need administrator access to bring the interface up or down. You could open a command prompt in admin level to achieve this. The runas command ensures that the command is ran as administrator, so to disable/enable the Wi-Fi would be C:\Windows\System32\runas.exe /user:administrator “C:\Windows\System32\netsh.exe interface set…

Continue reading