Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / PowerShell

Ugh, WIFI Not Working or Unstable? Try This Tip....

5.00/5 (2 votes)
17 May 2016CPOL 14K   66  
Ugh, WIFI not working or unstable? Try this tip....

Introduction

It's simple, many public wifi spots, be it educational or in a shop, etc. are very unreliable. Simply use the following Powershell script to quickly relase your IP, disconnect then reconnect and receive a new IP.

Using the Code

Personally, I have found that having to do this manually is very annoying (hence the script). Simply replace the "Name" and "SSID" with the desired information.

PowerShell
//
ipconfig /release
netsh wlan disconnect
netsh wlan show profile
ipconfig /renew
netsh wlan connect name="NAME" ssid="SSID"
//

Many thanks!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)