I'm working on an InfoSec exercise, specifically sending emails in cmd that makes use of telnet. Unfortunately, I can't start it. I'm receiving the "'telnet' is not recognized as an internal or external command,operable program or batch file." from cmd when I type telnet. Can someone please tell me on what to install and its procedures for me to access telnet command in CMD. Thanks!


I hope you are using windows 7. Telnet is disabled by default to enable it follow control panel> programs & features > In left bar select "turn windows features on or off > in list find "Telnet Client" tick it Click ok. Done!! you telnet should be working now.


Telnet is a Windows feature that needs to be enabled.

Control Panel > Programs & Features > Turn Windows features on or off > check the box at Telnet Client


You can install telnet client by using DISM command-line tool, e.g.:

dism /online /Enable-Feature /FeatureName:TelnetClient

or using pkgmgr (deprecated in favor of above):

pkgmgr /iu:"TelnetClient"


The syntax is:

telnet example.com 80

where example.com is your destination host (can be localhost for local PC) and 80 is the port number.

When you connect, to disconnect, hit Control+], then type quit command to exit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.