Click here to Skip to main content
14,926,139 members
Articles / Programming Languages / PowerShell
Posted 17 May 2016

Tagged as


2 bookmarked

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

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
17 May 2016CPOL
Ugh, WIFI not working or unstable? Try this tip....


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.

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

Many thanks!


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


About the Author

United Kingdom United Kingdom
No Biography provided

Comments and Discussions

QuestionTo be continued.. Pin
MarkHawes18-May-16 0:29
MemberMarkHawes18-May-16 0:29 
GeneralVery good Pin
Jamie Highfield18-May-16 0:24
MemberJamie Highfield18-May-16 0:24 
SuggestionWhy don't you....... Pin
DaveAuld17-May-16 1:47
professionalDaveAuld17-May-16 1:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.