Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET
Windows 11

How to Enable Telnet Client in Windows 11 and Server 2022

Telnet is a client/server protocol used for accessing remote servers. As the name might suggest, Telnet was originally used on terminals that only required a keyboard because everything on the screen was displayed in text, usually from a mainframe computer. The terminal used Telnet to remotely log in to a mainframe server or other computer. But in recent years, Telnet has fallen out of favor because it doesn’t provide a secure way to communicate with remote servers.

Nevertheless, Telnet still has its uses today. For example, it can be useful for checking connectivity to a remote server. You can use a Telnet client to try and access a port on a remote server. For example, if you are troubleshooting connectivity issues. Or you can use Telnet to enter some commands and run them on a remote server and the output will be returned in the Telnet client.

[toc]

You can use Telnet for accessing remote servers if using strong authentication and encryption over the network isn’t critical. One example is connecting to an SMTP server. You might issue some commands to a remote SMTP server to test sending email. The commands below start the Telnet client and then create a connection on SMTP port 25 to a mail server. Then a message is sent before closing the connection.

Sponsored Content

Say Goodbye to Traditional PC Lifecycle Management

Traditional IT tools, including Microsoft SCCM, Ghost Solution Suite, and KACE, often require considerable custom configurations by T3 technicians (an expensive and often elusive IT resource) to enable management of a hybrid onsite + remote workforce. In many cases, even with the best resources, organizations are finding that these on-premise tools simply cannot support remote endpoints consistently and reliably due to infrastructure limitations.

telnet
set localecho
open mail.contoso.com 25
ehlo contoso.com
mail from: <[email protected]>
rcpt to: <[email protected]> notify=success,failure
data
subject: test email
This is a test for Argo
.
quit

And while Telnet has never been a critical Windows tool, there is a Telnet client built into Windows 11 and Windows Server 2022, although it isn’t enabled by default. In this article, I will show you how to enable the Telnet client using the GUI and command line.

Install the Telnet client using the GUI

Using the GUI to install the Telnet client in Windows 11 and Windows Server 2022 differs a little. Let’s start with Windows Server 2022.

Install the Telnet client in Windows Server 2022

Follow the instructions below to install the Telnet client using Server Manager.

  1. Log in to Windows Server 2022 with an administrator account.
  2. Open Server Manager from the Start menu.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)
  1. Click the Manage menu in the top right corner and then select Add Roles and Features.
  1. In the Add Roles and Features Wizard, click Next on the Before you begin
  2. Click Next on the Select installation type
  3. On the Select destination server screen, make sure that your local server is selected in the list of servers and then click Next.
  4. Click Next on the Select server roles
  5. On the Select features screen, scroll down the list of available features, check Telnet Client, and click Next.
  1. Click Install on the Confirmation installation selections
  1. Close the Add Roles and Features Wizard.
Install the Telnet client in Windows 11

The Telnet client is installed using the legacy Control Panel in Windows 11.

  1. Click the Search icon on the taskbar.
  2. Type control panel and then select Control Panel from the list of results under Best match.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)
  1. In the Control Panel, click Programs.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)
  1. Click Turn Windows features on or off under Programs and Features.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)
  1. In the Windows Features window, scroll down the list of available features, check Telnet Client, and then click OK.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)

The Telnet client will now be installed on Windows 11.

Install the Telnet client using the command line

The Telnet client can be installed using PowerShell or the DISM command-line tool. The following methods work in Windows 11 and Windows Server 2022.

Install the Telnet client using DISM

To install the Telnet client using DISM, following the instructions below.

  1. Open the Start menu on the taskbar.
  2. Type cmd and then make sure that Command Prompt is highlighted in the list of search results.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)
  1. In the panel on the right, click Run as administrator.
  2. Give consent or provide an administrator username and password as prompted.
  3. In the command prompt window, type the command below and press ENTER.
dism /online /Enable-Feature /FeatureName:TelnetClient
  1. In the command prompt window, type y and press ENTER to restart Windows 11.

Install the Telnet client using PowerShell

To install the Telnet client using PowerShell, following the instructions below.

  1. Open the Start menu on the taskbar.
  2. Type powershell and then make sure that Windows PowerShell is highlighted in the list of search results.
  3. In the panel on the right, click Run as administrator.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)
  1. Give consent or provide an administrator username and password as prompted.
  2. In the PowerShell window, type the command below and press ENTER.
Enable-WindowsOptionalFeature -Online -FeatureName TelnetClient
  1. In the PowerShell window, type y and press ENTER to restart Windows 11.
Enable Telnet Client in Windows 11 and Server 2022 (Image Credit: Russell Smith)

And that’s it. The Telnet client is now installed.

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (2)

2 responses to “How to Enable Telnet Client in Windows 11 and Server 2022”

  1. For those reading this and don’t have the permission and/or want to install this feature, you can use the built-in PowerShell cmdlet "Test-NetConnection".

    Example: Test-NetConnection -ComputerName ‘www.google.com’ -Port 443

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.