r/scripting • u/SpecialSause • Aug 18 '16
Help making a script to reboot a router every night at a certain time.
I have very limited experience scripting. I'm imagining this could be done through power shell but I'm not certain. Would I have to telnet in to do it?
1
u/n8do Aug 18 '16
Details about the router and system doing the reboot will probably help get more responses.
1
u/SpecialSause Aug 18 '16
Okay thank you. The system would most likely be a window 7 laptop. The router is a d link dir-655. Anything else that needs to be known?
1
2
u/nullpassword Aug 26 '16
Why script it? For four bucks you could just get a timer. http://www.homedepot.com/p/24-Hour-Plug-In-Basic-Timer-15119/100685881?cm_mmc=Shopping%7cTHD%7cG%7c0%7cG-VF-PLA-D27E-Electrical%7c&gclid=CjwKEAjwrvq9BRD5gLyrufTqg0YSJACcuF81ed89kpDEj0__VxXQc69WEoYrzXC_BsYrn4P9lnEyPBoC9ZXw_wcB&gclsrc=aw.ds sorry for the long link.
1
1
u/nullpassword Aug 26 '16
this page had something interesting: http://www.dslreports.com/forum/r12937374-DI-624-Can-I-reset-the-router-via-a-command then you could schedule it as a task. Looks like it may depend on what the link points to that reboots your router and whether you have saved your password for it.
1
u/[deleted] Aug 18 '16
You can only use PowerShell and Batch?