TELNET – Windows CMD Command

Communicate with another host using the TELNET protocol.

In Windows 7 and above the telnet client is not enabled by default.
To enable it open ‘Programs and Features’ | ‘Turn Windows features on and off’ and select Telnet Client.
or run
pkgmgr /iu:”TelnetClient”

In Windows 2008 and above the telnet server is not installed by default.
To enable it open Server Manager | Features | Add Features and select ‘Telnet Server’ and install.
or run Install-WindowsFeature or
ServerManagercmd -install telnet-client

Telnet commands

Anything other than one of the commands above will be sent as a string to the Telnet server.
For example, send ss64 sends the string ss64 to the Telnet server, which echoes the string in the Telnet session window.

Telnet communicates with the peer (telnet server) in clear text which is a potential security hazard for machines connected to the internet. Telnet traffic can be secured with Internet Protocol security (IPsec)

A alternative to telnet is SSH (which is cross platform) a popular choice on Windows is PuTTY: A Free Telnet/SSH Client.



Connect to the remote webserver for through HTTP port number 80 and retrieve the home page, note the GET command is case sensitive:

C:\> telnet 80
GET /index.html
<line feed>

Run a telnet script using the freeware Telnet scripting tool, in the script file use \m for a carriage return/linefeed:
C:\utils\TST10.exe /r:MyTelnetScript.txt /o:output.txt

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *