5

To install Telnet in PowerShell you can run:

Install-WindowsFeature -name Telnet-Client

This unfortunately does not seem to work in PowerShell Core where it produces the following error:

Install-WindowsFeature : The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet

What is the equivalent command in PowerShell Core to install Telnet?

Using Windows 10 version 2004, Insider Program

2 Answers 2

15

Run in an elevated shell:

Enable-WindowsOptionalFeature -Online -FeatureName "TelnetClient"
2

An alternative way to install Telnet is via DISM:

dism /online /Enable-Feature /FeatureName:TelnetClient

If neither PowerShell Install-WindowsFeature nor DISM work for you, then Microsoft does not supply Telnet for your Windows version.

You could instead install Chocolatey and then install its package of telnet using the command:

choco install telnet
2
  • I edited the question with the Windows version. DISM worked great on an elevated shell. I don't think it's necessary to use Chocolatey in this case being this a operating system feature that can be enabled/disabled. Commented Dec 6, 2019 at 11:47
  • Chocolatey is only for cases where this Windows feature doesn't exist.
    – harrymc
    Commented Dec 6, 2019 at 12:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .