Geekflare is supported by our audience. We may earn affiliate commissions from buying links on this site.
In Networking Last updated: September 19, 2023
Share on:
Invicti Web Application Security Scanner – the only solution that delivers automatic verification of vulnerabilities with Proof-Based Scanning™.

How to fix the telnet not recognized error when you execute on a Windows desktop and server?

Telnet is one of the popular commands to check network connectivity, and for some reason, the higher Windows OS version doesn’t have it installed by default. That results in showing an error when you run telnet on the command prompt.

C:\Users>telnet
'telnet' is not recognized as an internal or external command,
operable program or batch file.

C:\Users>

It’s easy to fix.

You have to install telnet to get this working.

Installing Telnet on Windows 10 & 11

#1. Using Control Panel

Open the Control Panel from the taskbar search.

Click Programs.

programs

Enter into Turn Windows features on or off.

windows-features

Scroll down to check Telnet Client, and click OK at the bottom.

windows-features-telnet

#2. Using Command Prompt

Type “cmd” in the taskbar search and open Command Prompt as an administrator.

cmd-from-taskbar

Paste dism /online /Enable-Feature /FeatureName:TelnetClient, and press enter.

telnet

Likewise, you can use dism /Online /Disable-Feature /FeatureName:TelnetClient to disable telnet.

#3. Using Powershell

Type “powershell” in the taskbar search and open it as an administrator.

powershell

Paste Enable-WindowsOptionalFeature -Online -FeatureName TelnetClient and press enter.

powershell-telnet-active

This will give a success message shortly. To undo, paste Disable-WindowsOptionalFeature -Online -FeatureName TelnetClient and press enter.

Installing Telnet on Server

If you are running the server edition, then you can install it by following the steps.

  • Go to start and launch for “Server Manager.”
  • It will open a server manager dashboard where you have to click on
  • It will prompt “Add Roles and Features Wizard.”
  • Let the default settings be there and click Next on Before You Begin, Installation Type, Server Selection, Server Roles
  • On Features selection, select “Telnet Client” and Next
  • Click on Install on the Confirmation window to begin the installation

It will take a few seconds, and you will get a confirmation of installation success.

  • Click close and launch Command Prompt to rerun the telnet.

There you go, have fun!

Looking to learn about Windows Administration? Check out this online course.

  • Chandan Kumar
    Author
    Chandan Kumar is the founder of Geekflare. He’s helped millions to excel in the digital realm. Passionate about technology, He’s on a mission to explore the world and amplify growth for professionals and businesses.
Thanks to our Sponsors
More great readings on Networking
Power Your Business
Some of the tools and services to help your business grow.
  • Invicti uses the Proof-Based Scanning™ to automatically verify the identified vulnerabilities and generate actionable results within just hours.
    Try Invicti
  • Web scraping, residential proxy, proxy manager, web unlocker, search engine crawler, and all you need to collect web data.
    Try Brightdata
  • Monday.com is an all-in-one work OS to help you manage projects, tasks, work, sales, CRM, operations, workflows, and more.
    Try Monday
  • Intruder is an online vulnerability scanner that finds cyber security weaknesses in your infrastructure, to avoid costly data breaches.
    Try Intruder