How to Install Telnet via CMD or PowerShell in Windows 11

Published by Nyau Wai Hoe - Updated on

Telnet is a very well known network tool that lets you remotely access and manage devices over a network, very conveniently. It is (or used to) a must have tool for many network admins and IT people who always need to do various networking related tasks or fix connectivity issues. This guide will show you how to install Telnet using command line via CMD or PowerShell in Windows 11 or 10.

Also see: How to Remote Desktop Over The Internet in Windows 11

How to Install Telnet via CMD or PowerShell in Windows 11

What actually is Telnet?

Telnet (stands for Teletype Network) is a text-based way to remotely access and manage devices using a command-line interface. Created in the late 1960s, it’s old but still useful for managing networks and testing things locally. However, Telnet doesn’t encrypt its data, which makes it not so safe for private info. So, it’s best to use it only in safe spots or for testing stuff.

Usually, you turn on the Telnet client in Windows 11 or 10 through the “Turn Windows features on or off” window. This lets you easily switch on or off different Windows features, including Telnet, with a few clicks.

Enable Telnet Windows features

But sometimes, you might want to install the Telnet client using the command line. This is handy for sysadmins managing lots of machines or if you prefer using command-line tools over the graphical interface.

Before you start

Make sure you have Administrator rights on your Windows 11 PC. You’ll need this to change system settings and add features.

Useful tip: Run CMD, PowerShell or Regedit as SYSTEM in Windows 11

Step 1: Open CMD or PowerShell as an admin

To add Telnet, you can use either CMD or PowerShell. Here’s how to open them with admin rights:

  1. Hit the Windows key to bring up the Start menu.
  2. Type CMD or PowerShell in the search bar.
  3. Right-click the search result and pick Run as administrator. This lets you make changes at the system level.

Command Prompt Run as Administrator

Step 2: Add Telnet using the command line

With CMD or PowerShell open, run this command to add the Telnet client to your Windows 11:

dism /online /Enable-Feature /FeatureName:TelnetClient

Install Telnet CMD Windows 11

This tells Windows to turn on the Telnet Client feature. You’ll see a progress bar and then a message that says it’s all done.

Suggested resource: How to Check Who is Logged in Remotely or Locally on Windows 11

Step 3: Check if Telnet is ready

To see if Telnet is up and running, try this in CMD or PowerShell:

telnet

If everything’s good, you’ll see a welcome message from the Telnet client.

To leave Telnet, just type quit and hit Enter.

Install Telnet PowerShell Windows 11

Step 4: How to use Telnet

Now that Telnet’s installed, you can use it to connect to devices remotely. Here’s the basic way to do it:

telnet <hostname> <port>

Swap <hostname> with the device’s IP address or domain name, and <port> with the port you’re connecting through.

For example, to connect to a device at 192.168.1.10 on port 23:

telnet 192.168.1.10 23

Using Telnet Client in Command Prompt

If it works, you’ll need to log in. Once in, you can control the device like you’re right there.

Just remember, because Telnet isn’t secure, only use it in safe places or for tests.

Related guide: How to Use Netsh Interface IP Set Address or DNS in CMD

Step 5: If you don’t want Telnet anymore

If you’re done with Telnet or worried about security, turning it off is easy. Here’s how with CMD or PowerShell:

  1. Open CMD or PowerShell as an admin, like in Step 1.
  2. To turn off Telnet, run this command:
    dism /online /Disable-Feature /FeatureName:TelnetClient

    Uninstall or disable Telnet CMD Windows 11

  3. To check if Telnet is really off, try:
    telnet

If Telnet’s off, you’ll get a message saying it’s not recognized.

Final words

That’s all there is to it! You should now be able to add, use, and remove Telnet on Windows 11 using only command line. Even though Telnet is already old and not very secure in recent years, it can still be useful for certain tasks. Just be sure to use it correctly and safely.


Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of WindowsDigitals.com. With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link