Home » PowerShell Tips » Windows – Install Telnet Client using PowerShell & CMD

Windows – Install Telnet Client using PowerShell & CMD

Telnet is an application protocol that provides a command line interface to establish communication with the remote host. Telnet is disabled by default on versions of Windows operating systems like Windows 10, Windows Server 2012, Windows Server 2016, or Windows Server 2019. We will check different options to install telnet client using PowerShell or cmd.

If the telnet client is not enabled on your local system and if you run the telnet command on PowerShell, it will error message as ‘Telnet’ is not recognized as the name of a cmdlet, function, script file, or operable program.

In this article, I will explain to you how to use PowerShell script to install Telnet client on a Windows server or Windows operating system and how to enable it using cmd (command prompt)

Install Telnet Client on Windows

You can install telnet client on the Windows operating system using PowerShell or cmd.

I will explain with PowerShell script or command to install or enable telnet client on Windows.

PowerShell Script to Install Telnet Client

PowerShell Install-WindowsFeature cmdlet is used to install one or more role services or features on local or specified remote computers.

Using Install-WindowsFeature cmdlet –Name parameter to specify Telnet-Client features, it can be installed on a Windows server.

Install-WindowsFeature cmdlet requires ServerManager to be installed. Install the module using the below command

Import-Module ServerManager

Use below PowerShell script or command to install telnet client

Install-WindowsFeature -name "Telnet-Client"

Note: You will need to open a PowerShell terminal or ISE with run as administrator privilege.

Install Telnet Client using CMD

To install Telnet client on Windows 10 or windows server 2016, open the command prompt with run as administrator privilege.

dism command line tool is used to repair or modify Windows installation media. Use the below command to enable the telnet client using cmd on the Windows server or operating system.

C:\> dism /online /Enable-Feature /FeatureName:TelnetClient

Cool Tip: How to use the Get-WindowsOptionalFeature cmdlet in PowerShell!

Conclusion

I hope the above article will help you to install the telnet client on Windows Server 2019 or any Windows operating system using a PowerShell script or command prompt.

If you don’t want to enable telnet client using PowerShell or cmd in Windows, you can use the telnet alternatives option to test the connection with the remote computer.

You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.