Restart the router or reset from the PC also automatically

When the internet connection gives you some problems, the first thing to try is to restart the modem / router which for some reason stops working as it should.
To restart the router, in theory, it would be necessary to unplug it and put it back after 10 seconds, which is rather brutal, which in some houses or offices may not be so simple since maybe the router was hidden behind a piece of furniture or placed in another room.
Since we are more refined here, let's see how you can restart or reset the router in a simple way, directly from the PC .
To do this from a Windows PC you need to install a system component not normally included: Telnet .
To install Telnet on Windows you need to open the application installation menu or Programs and features from the Control Panel and click the link on the left Activating / deactivating Windows functionality .
In the list, look for Telnet client, put the cross in it, then press OK and wait for the installation.
To use Telnet you need to open a command prompt window as an administrator.
The prompt can be started from the Start - Programs - Accessories menu (right-click on it to use it as an administrator) or, on Windows 8, from the menu that appears by pressing the Windows X key combination (or by pressing the right button on the flag below to the left).
From the command prompt, to connect to the router, type:
telnet 192.168.1.1
If it doesn't work, see here how to find the IP address of your home router.
At login you will be asked to enter your login name and password which, if they have never been changed, should be admin and admin (note that when writing the password the letters do not appear so after writing it press Enter even if you don't see it ).
If you don't know the password, see here to find the router's default login and password.
Once logged in, the command to restart the router may vary from model to model.
By writing help and pressing Enter, you get the list of supported commands, among which there should also be the one to restart it reboot .
If it is not there, you must first go to a control section, which can be system or dev .
Then writing system reboot the router will be restarted.
In the same way you can use the reset command which returns the router to the factory settings.
To make this restart of the router simpler and faster, you can create a file on the desktop that will be enough to perform with a double click or automatically every day .
Then create a new text document on the desktop (by pressing the right mouse button on an empty area and choosing New ) and write in this code:
Option explicit
Dim oShell
set oShell = Wscript.CreateObject ("WScript.Shell")
oShell.Run "telnet"
WScript.Sleep 3000
oShell.Sendkeys "open 192.168.1.1 ~"
WScript.Sleep 3000
oShell.Sendkeys "admin ~"
WScript.Sleep 3000
oShell.Sendkeys "password ~"
WScript.Sleep 3000
oShell.Sendkeys "system reboot ~"
WScript.Sleep 3000
oShell.Sendkeys "~"
Wscript.Quit
In the code you will need to change the login name and password, possibly the IP address and the reboot command if it is not in the system .
The file must then be saved and renamed with the extension .vbs and no longer .txt (to see the file extensions modify the folder options from the control panel).
The new .vbs file can then be set for automatic daily or weekly execution from the Scheduler located in Control Panel in administration tools .

Leave Your Comment

Please enter your comment!
Please enter your name here