Microsoft KB Archive/245095

= HOW TO: Change the Telnet Server Banner and Run Programs for All Users =

Article ID: 245095

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q245095





IN THIS TASK
SUMMARY
 * Changing the Login.cmd File



SUMMARY
You can change your Telnet server to display a banner and run programs upon logon for all users by modifying the Login.cmd file. You can modify this file to run other programs (such as a different shell). The commands in the Login.cmd file are run for all users.

back to the top

Changing the Login.cmd File
 Use any text editor (such as Notepad) to open the %SystemRoot%\System32\Login.cmd file. Modify the Telnet server banner or add the path and name of the program you want to run upon logon.

For example, you could change

echo Welcome to Microsoft Telnet Server

to:

echo Welcome to Microsoft Telnet Server on Server: %computername%

You could also add the following line at the end of the file to change the command prompt to reflect the name of the server in your Telnet session:

prompt %computername%:$P$G

 Save the file, and then quit Notepad.

back to the top

Keywords: kbenv kbhowto kbhowtomaster KB245095

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.