Windows Auto-logon telnet batch file VBS method (Windows Script Host)

Source: Internet
Author: User

Copy the code into Notepad and save it as Autotelnet.bat, then double-click Run to automatically log on to the Telnet server, the server IP to modify itself

@echo off
Echo Set Sh=wscript.createobject ("Wscript.Shell") >telnet_tmp.vbs
Echo Sh. SendKeys "Open 192.168.210.91" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "{ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep 10000 >>telnet_tmp.vbs
Echo Sh. SendKeys "y{ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "administrator{ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Echo Sh. SendKeys "password{ENTER}" >>telnet_tmp.vbs
Echo Wscript.Sleep >>telnet_tmp.vbs
Start Telnet
cscript//nologo Telnet_tmp.vbs
Del Telnet_tmp.vbs

Windows automatically logs on Telnet batch file VBS method (Windows Script Host)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.