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
Run in an elevated shell:
Enable-WindowsOptionalFeature -Online -FeatureName "TelnetClient" 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