Introduction: How to Turn Wifi On/Off Using Command Prompt!!
This Instructable will show you how to turn the wifi on your computer on or off using command prompt
Please subscribe to my channel
Thanks :)
Step 1: Open Command Prompt
1. Open the Start Menu
2. Type Command Prompt in the Search Bar
3. Right Click on Command Prompt
- It should be listed under Programs
4. Select Run as administrator
- If you get a pop up click Yes
Step 2: Type Command to Get the Index Number for the Wifi Adapter
1. Type wmic nicget name, index
- nic stands for network interface card
2. Find the index number for your wifi adapter
Step 3: Type Command to Turn Wifi Off
1. Type wmic path win32_networkadapter where index=(index number for wifi adapter) call disable
- For the example shown in this article the index number for the wifi adapter is 7, so you would type wmic path win32_networkadapter where index=7 call disable
2. Press Enter
- Once you press enter your wifi should turn off, the icon should disappear, and it should say not connected - no connections are available
Step 4: Type Command to Turn Wifi On
1. Type wmic path win32_networkadapter where index=(index number for wifi adapter) call enable
- For the example shown in this article the index number for the wifi adapter is 7, so you would type wmic path win32_networkadapter where index=7 call enable
2. Press Enter
- Once you press enter your wifi should turn on, the icon should reappear and it should say not connected -connections are available
3. Close Command Prompt
4 Comments
4 weeks ago
how to do this for other laptops on your wifi
Tip 2 years ago
You can also do this with ipconfig /release and ipconfig /renew. That is the way to do it without administrator commands.
Question 2 years ago on Step 2
Can you advise as to what to do if it returns the message "alias not found"? It seems my HP laptop no longer thinks its wifi adapter is connected...
Answer 2 years ago
I had the same problem and found the solution was to change
"wmic nicget name, index" to
"wmic nic get name, index" in Step 2.(add a space between nic & get)