Click here to Skip to main content
15,867,141 members
Articles / Programming Languages / PowerShell
Tip/Trick

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 13.6K   66   2   3
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)


Written By
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionTo be continued.. Pin
MarkHawes18-May-16 0:29
MarkHawes18-May-16 0:29 
GeneralVery good Pin
Jamie Highfield18-May-16 0:24
Jamie Highfield18-May-16 0:24 
Thank you for creating this tip for us.
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.