Renew router lease or Reconnect to internet

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Snickers
Macro Veteran
Posts: 151
Joined: Thu Dec 09, 2004 3:01 pm
Location: Somewhere in TX

Renew router lease or Reconnect to internet

Post by Snickers » Thu Aug 26, 2010 7:45 pm

I have a computer that seems to disconnect from the internet every 12 hours or so. I have a script that pings a host to check for internet connectivity...in the event there is no internet connectivity, I would like for macro scheduler to renew the lease oand/or reestablish the internet connection. I looked through the help files but have been unable to find a solution.


Is this possible and if so, could you please point me in the right direction to solving this issue?

Thank you!

I found a partial solution but I was hoping to do it without the command prompt coming up. or promptly closing it after releasing or renewing

Run>cmd.exe /k ipconfig/release
Run>cmd.exe /k ipconfig/renew


Then i still need to try to reconnect to the internet...not sure if that command will achieve the same thing

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Fri Aug 27, 2010 2:22 am

Try this:

Code: Select all

Let>RP_WINDOWMODE=0
Let>RP_WAIT=1
Run>ipconfig /renew

I don't think you need the cmd shell as ipconfig is a standalone
program.

Not sure if you need to release before renew.... that you will have to find by experimentation.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Aug 27, 2010 5:32 pm

My experience (in the pre W7 days when I had to use such a script with XP) is that it is better to release and wait a few seconds before renew.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts