Export (0) Print
Expand All

Configure the User's Session with Login.cmd

Updated: March 24, 2010

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

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 *===============================================
cd /d %HOMEDRIVE%\%HOMEPATH%

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 *================================================
cd /d %HOMEDRIVE%\%HOMEPATH%
net config server

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft