Hi, is there a command to switch the on/off sliding status in the right side of WLAN Networks UI screen? It seems that this turn on/off the network adaptor power.Thanks
If you want to disable or enable Wi-Fi interface, this can be done by commands in Administrative command prompt:
Code:
netsh interface set interface "Wi-Fi" disable
or
netsh interface set interface "Wi-Fi" enable
In this example, the interface name is Wi-Fi. You can check the name on your machine and replace it if need:
Code:
netsh interface show interface
You can make two *.cmd files to switch the Wi-Fi off or on. Some drawback is, these commands can be performed only in Admin mode, so you need to run them as Administrator (or set this mode in the properties of shortcut to a cmd file) and confirm it in UAC interface. After that, whether you will be connected automatically to a particular network after enabling the interface or not, depends on your network settings.