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:
- @ Echooff
- Rem
- Rem default global logon script for Telnet server
- Rem
- Rem is installed by default. When the initial command shell is called,
- Rem runs the script. Conversely,
- Rem it will try to call
- Rem logon script.
- Rem
- Echo
- * ===================================================== ==================
- Echo
- Welcome to the Microsoft Telnet server.
- Echo
- * ===================================================== ==========
- Cd/d % HOMEDRIVE % \ % HOMEPATH %
- 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:
- @ Echooff
- Rem
- Rem default global logon script for Telnet server
- Rem
- Rem is installed by default. When the initial command shell is called,
- Rem runs the script. Conversely,
- Rem it will try to call
- Rem logon script.
- Rem
- Echo
- * ===================================================== ==========
- Echo
- Welcome to my server
- Echo
- * ===================================================== ==========
- Cd/d % HOMEDRIVE % \ % HOMEPATH % net config server