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}”)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: