Configure the User's Session with Login.cmd

Applies To: Windows 7, Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista

Using Login.cmd

The Login.cmd file is run whenever someone logs on to Telnet Server. You can edit the Login.cmd file to change the text that appears when someone logs on, and you can use Login.cmd to run other programs.

When Telnet Server is installed, the Login.cmd file is copied to %SystemRoot%\system32\. By default, this is what its text looks like:

@echo off
echo *====================================================
echo Welcome to Microsoft Telnet Server.
echo *===============================================

In the following example, the file has been edited to display the text "Welcome to my Telnet server," and run net config to display information about the server configuration:

@echo off
echo *================================================
echo Welcome to my Telnet server
echo *================================================
net config server

See Also


Display Information About Current Telnet Sessions
Send a Message to a Telnet Session
Disconnect a Telnet Session