Is there a quick way to turn my wifi adapter off / back-on? (without going all the way into Network Connections)?

domino66

Honorable
Apr 12, 2013
45
0
10,530
My HP laptop has a weird bug where it won't connect to a different wifi network (even a 'known' one that I connect to every day, like my work or home wifi network) without me DISABLING and then re-ENABLING the wifi adapter.

I've given up trying to trouble-shoot that error, since nothing has worked, so now I just want the fastest way to disable / re-enable my wifi adapter. Currently I have to right-click "Network and Sharing Center"..."Change Adapter Settings"...right-click my Wifi adapter icon and select DISABLE, and then right-click again and ENABLE.

An annoying 20-seconds I have to do several times per day. Is there a quicker way to do this? Or perhaps a way to create a keyboard shortcut or macro?

(**Note that i do have a keyboard key that turns on/off Airplane mode, BUT that doesn't work to fix the bug...the only thing that gets me online is going through the tasks above to manually turn off the adapter and then turn it back on.)
 
I've got a similar problem on my laptop. In my case, Windows isn't requesting a DHCP update when it connects to a new network (it keeps trying to use DHCP-assigned IP address from the previous network). I just wrote a script which does:

ipconfig /release
ipconfig /renew

It still takes time to run, but it's a single click (well, double-click). Might want to pop open a command prompt and see if the above works for your problem too.

You may also want to try this fix. Didn't work for me, but who knows it might work for you.
http://community.spiceworks.com/topic/251040-ip-address-not-updating-when-connecting-to-new-wireless-network
 

domino66

Honorable
Apr 12, 2013
45
0
10,530


Thx for reply -- can you share with me how to "write the script" that releases / renews the IP? I read through that other help thread, but it's somewhat convoluted and unclear whether they're describing exactly the same problem, but either way: the "solution" seems beyond my scope.

I guess I'll live with a 1- or 2-click command prompt solution for now...but how do I write the script you're talking about? With AHK or something?

EDIT: NEVER MIND, QUICK GOOGLE SEARCH FOUND LOTS, LIKE THIS PAGE: http://community.spiceworks.com/how_to/show/58-batch-file-to-renew-ip-address