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
Renew router lease or Reconnect to internet
Moderators: Dorian (MJT support), JRL
Try this:
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.
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.