Router Reboot Telnet Script
A nice and easy script to reboot your router…complete description and details here, at the original author’s page at ihaveapc.com
——- —————-Start of Script———————————-
set WshShell = WScript.CreateObject(“WScript.Shell”)
‘Open a Telnet connection to router IP’
‘Delay of 4 seconds in between using the Sleep 4000 parameter when entering commands’
WshShell.run“telnet.exe 192.168.1.1”
WScript.Sleep 4000
‘Provide username
WshShell.SendKeys“username”
WshShell.SendKeys(“{Enter}”)
WScript.Sleep 4000
‘Provide user password
WshShell.SendKeys“password”
WshShell.SendKeys(“{Enter}”)
WScript.Sleep 4000
‘Reboot the router
WshShell.SendKeys“reboot”
WshShell.SendKeys(“{Enter}”)
Leave a Reply