Celeb Glow
news | February 28, 2026

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...

3

2 Answers

These steps worked for me on Windows 10, build 19043.

  1. 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 .bat instead of .txt.
  2. Double-clicking this .bat file will instantly turn off your WiFi. To add a keyboard hotkey, first create a shortcut to this file.
  3. 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).

1

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy