Two Methods of cmd Telnet (1)

Source: Internet
Author: User

In some settings, we can use the cmd Telnet service to complete our work. Here we introduce two solutions. The first is: Use the login. cmd Telnet service, and the second is: Use the quick cmd Telnet service. For details about the specific solution, refer.

Solution 1: use login. cmd to Telnet to Windows)

No matter when someone logs on to the Telnet server, the program login. cmd starts to run. You can edit the login. cmd Telnet file to change the text displayed during user logon, or use login. cmd to run other programs. When "Windows Service for UNIX System" is installed, the program is copied to the directory % SystemRoot % \ system32 \ login. cmd. The display status is as follows:

 
 
  1. @ Echooff
  2. Rem
  3. Rem default global logon script for Telnet server
  4. Rem
  5. Rem is installed by default. When the initial command shell is called,
  6. Rem runs the script. Conversely,
  7. Rem it will try to call
  8. Rem logon script.
  9. Rem
  10. Echo
  11. * ===================================================== ==================
  12. Echo
  13. Welcome to the Microsoft Telnet server.
  14. Echo
  15. * ===================================================== ==========
  16. Cd/d % HOMEDRIVE % \ % HOMEPATH %
  17. In the following example, the edited file displays the text "Welcome to my Telent server", and then runs net config to display server configuration information:
  18. @ Echooff
  19. Rem
  20. Rem default global logon script for Telnet server
  21. Rem
  22. Rem is installed by default. When the initial command shell is called,
  23. Rem runs the script. Conversely,
  24. Rem it will try to call
  25. Rem logon script.
  26. Rem
  27. Echo
  28. * ===================================================== ==========
  29. Echo
  30. Welcome to my server
  31. Echo
  32. * ===================================================== ==========
  33. Cd/d % HOMEDRIVE % \ % HOMEPATH % net config server


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.