如何从 PowerShell Core 提示符安装 Telnet

Mar*_*vic 4 telnet powershell-core

要在PowerShell中安装 Telnet ,您可以运行:

Install-WindowsFeature -name Telnet-Client
Run Code Online (Sandbox Code Playgroud)

不幸的是,这似乎在PowerShell Core中不起作用,它会产生以下错误:

Install-WindowsFeature : The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet
Run Code Online (Sandbox Code Playgroud)

PowerShell Core 中用于安装 Telnet 的等效命令是什么?

使用 Windows 10 版本 2004,Insider 计划

Mar*_*vic 13

在提升的 shell 中运行:

Enable-WindowsOptionalFeature -Online -FeatureName "TelnetClient"
Run Code Online (Sandbox Code Playgroud)