To install Telnet in PowerShell you can run:
Install-WindowsFeature -name Telnet-ClientThis 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 cmdletWhat 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:TelnetClientIf neither PowerShell Install-WindowsFeature nor DISM work for you,
then Microsoft does not supply Telnet for your Windows version.
You could instead installChocolateyand then install its package oftelnetusing the command:
choco install telnet 2