How to Turn on/off wi-fi with a keyboard shortcut in windows 10
Is there any way to assign a keyboard hotkey/shortcut key to enable or disable wi-fi in windows 10 without installing any softwares?
I can do that with a program called hot keyboard. But i don't want to run a program all the time slowing my pc for this little task, i'm already running too much...
32 Answers
These steps worked for me on Windows 10, build 19043.
- Create and save a new text file in your preferred text editor, with the contents of the file,
netsh wlan disconnect. Rename the extension of the text file as.batinstead of.txt. - Double-clicking this
.batfile will instantly turn off your WiFi. To add a keyboard hotkey, first create a shortcut to this file. - Right-click on the shortcut, Properties > Shortcut > Shortcut key. Enter the key combination you prefer. Click
Apply.
If you wish to reconnect, follow the same steps, replacing the file contents with netsh wlan connect "<Your_Network_Name>" (Quotes are necessary).
Try: netsh wlan disconnect interface="name of connection"
And: netsh wlan connect interface="name of connection"
That works fine for me. This will work on any Windows 10 computer.
On my machine (ThinkPad X1), also I can press Fn-F8 and that disconnects Wi-Fi. This will depend upon your particular PC. Look at its docs / help.
2