How to automatically connect to Wifi after sleep

The WiFi will automatically disconnect after the computer sleeps. If it is a campus network, it will be even more troublesome

Now we use the bat script to cooperate with the system trigger to realize the automatic connection of WiFi

Note: You cannot choose when logging in, but when unlocking the workstation

The content of the script is as follows

netsh wlan connect bjfu-wifi

Paste into a text document, change the suffix to bat

Running will automatically connect to the target WiFi

In addition, the command to disconnect from the network is

netsh wlan disconnect

If the signal is often bad at the first connection, you can try the combined operation of disconnecting and reconnecting

netsh wlan connect bjfu-wifi
netsh wlan disconnect
netsh wlan connect bjfu-wifi

Guess you like

Origin blog.csdn.net/weixin_43673589/article/details/109126655