'Powershell command alternative to Telnet for managing router

  1. I need to reboot my wireless router (ZyXEL P-660HN-T1A) at a scheduled time (using task scheduler in Windows 7).

  2. The live and manual telnet command-line version to the task above is this:

    telnet 192.168.1.1
    password: **********
    sys reboot
    exit
    
  3. Now I want alternatively to use Powershell to automate and script (using probably TcpClient) the above commands and then run that script at the required time with Windows Task Scheduler.



Solution 1:[1]

If you use Cisco UCS it has a module for PS management of devices. Not very familiar with it, I just know it exists.

http://blogs.cisco.com/tag/powershell/

http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/msft_tools/powertools/ucs_powertool_book/ucs_pwrtool_bkl1.pdf

This guy talks about about some other options too..

http://www.orcsweb.com/blog/james/fun-with-powershell-plink-cisco-ios-and-powershell/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Noah Sparks