Rebooting home router daily or at regularly intervals need not be a manually repetitive task. It can be automated so that it can reboot as per desired schedule without intervention.
To do this in Windows, there are 3 main steps :
- Installing a Telnet client
- Making a router reboot script
- Linking the reboot script using Windows Task Scheduler
(The script used here is tested using Windows 10 and D-Link router. The parameters for reboot schedule used are : daily at 7:05 pm).
Installing a Telnet client : This isn’t installed by default in Windows. To install it, go to Programs and Features and click on Turn Windows Features On or Off.
Next, drill down to Telnet Client, select it and click OK. Wait for the installation to complete.
Now that Telnet client is enabled, a router reboot script is needed.
Router reboot script :
Copy paste the below .vbs code in notepad, replace the router IP address, login username and password. Save this as a .vbs extension and as All Files.
'Open a Telnet connection to router IP'
'Delay of 4 seconds in between using the Sleep 4000 parameter when entering commands'
'Provide user password
'Reboot the router
Before linking this script to Task Scheduler, it’s best to check if it does what is required.
Simply double click on it.
This will automatically open the Telnet window, connect to the router IP address with user credentials supplied and will reboot the router.
Adding the script to Windows Task Scheduler : Once it is working as needed, open Windows Task Scheduler. (Shortcut for this would be to open the Run box using Windows key + R and typing taskschd.msc).
Here, select Action > Create Basic Task.
Set a description as needed.
Choose a schedule for rebooting the router. Here it is configured to reboot daily at 19:05 hours.
Select the program to be launched for this created task. This will be the reboot script created before.
Finally, click Finish. The auto reboot task is created and the router script will be triggered automatically as per the set schedule.
By the way, there are some great deals onÂ home routers at AmazonÂ here.
Viva la automation! 🙂