-->

Turn Wi-Fi On Or Off With Keyboard or Desktop Shortcut on Windows | You can try how to do it.

How to Turn Wi-Fi On Or Off With Keyboard or Desktop Shortcut on Windows

 Some laptops have a "Wi-Fi" button or switch that can quickly turn Wi-Fi on or off. If your PC doesn't have this feature, you can make your own.


You have to start by creating a desktop or start menu shortcut.


Step One: Find Your Wi-Fi Connection Name


You need to check the name of the Wi-Fi connection connected to your computer. This is required to write commands that will enable and disable the Wi-Fi connection.


1. Go to Control Panel > Network and Internet > Network and Sharing Center > Change Adapter Settings.


2016-10-25-22_11_47-network-and-sharing-center



2. Remember the name of your Wi-Fi connection. For example, as shown below, the connection name is "ss tent".


2016-10-25-22_14_18-edit-post-kompiku-info-wordpress


Step Two: Create Desktop Shortcuts


1. Right-click the Windows desktop and select New > Shortcut to create a shortcut.


ximg_57fbe9f5511de


2. Copy and paste the following command into the “Type the location of the item” box:

netsh interface set interface name="Wi-Fi" admin = disabled


 ximg_57fbea946365c


3. Replace "Wifi" in the command with the name of your Wifi connection.


4. Name the shortcut “Disable Wi-Fi” or whatever you want and click “Finish”.


ximg_57fbeab9dde67


5. Now, we are going to create an Enable Wi-FI shortcut. Right-click the desktop and select New > Shortcut to create a new shortcut.



6. Copy and paste the following command into the "Type the location of the item" box, and don't forget to replace "Wifi" with the name of your Wi-Fi connection.

netsh interface set interface name="Wi-Fi" admin = enabled


 ximg_57fbeb4c011a8


7. Name the shortcut “Enable Wi-Fi” or whatever you want and click “Finish”.


ximg_57fbeb7531105


Step Three: Create Desktop Shortcuts To Run as Administrator


This netsh command requires Administrator access to make these changes to the system. You need to make this shortcut run as Administrator.


To do so:


1. Right-click on one of the shortcuts and select “Properties”.


ximg_57fbebca3ecfb


2. Click the “Advanced” button on the Shortcut tab, check the “Run as Administrator” box, and click “OK”.


ximg_57fbec2283c40


3. Repeat this process for another shortcut.



Step Four: Assign Keyboard Shortcuts


You can also assign a keyboard shortcut, if you like.


1. Right-click on one of the shortcuts and select “Properties”.



2. On the Shortcut tab, click the “Shortcut Key” box and press the key or key combination you want to set as a shortcut. Then click "OK". For example, if you want to assign the keyboard shortcut Ctrl + Alt + F1, click the “Shortcut Key” box and then press Ctrl + Alt + F1.


ximg_57fbec914f923


3. Repeat this process for the second shortcut. For example, you can set Ctrl + Alt + F1 to turn off Wi-Fi and Ctrl + Alt + F2 to turn on your Wi-Fi.


ximg_57fbed1524174


NOTE: This keyboard shortcut will only work if the shortcut is saved on the desktop or in the Start menu. If you place the shortcut in another folder, then your shortcut won't do anything when you press this keyboard shortcut.


You can also add a shortcut to the Start menu by copy-pasting the shortcut into the File Explorer location bar:

%appdata%\Microsoft\Windows\Start Menu\Programs


 ximg_57ffb7f4a392a


Copy-pasting the shortcuts to that folder will display the shortcuts in your Start menu, where you can click on them, and the keyboard shortcuts will still work.


How to Use Shortcuts


Now you can disable or enable your Wi-Fi by simply double-clicking the shortcut on the desktop, or by pressing the keyboard shortcut you created.


But one thing that is not good with this method is that you will see a User Account Control popup every time you run the shortcut. This popup asks if you want to do the action. You just need to click “Yes” to continue.


ximg_57fbedd68cc66

Related Posts