Windows 安装 telnet客户端

2022-06-18 23:35:58 浏览数 (1)

vista/win7

管理员身份打开cmd执行安装telnet客户端的命令

pkgmgr /iu:"TelnetClient"

安装:start /w pkgmgr /iu:"TelnetClient"

卸载:start /w pkgmgr /uu:"TelnetClient"

Win8/8.1/10/11

管理员身份打开powershell执行命令

查看:Get-WindowsOptionalFeature -Online -FeatureName "TelnetClient"

启用:Enable-WindowsOptionalFeature -Online -FeatureName "TelnetClient"

禁用:Disable-WindowsOptionalFeature -Online -FeatureName "TelnetClient"

Win11用pkgmgr /iu:"TelnetClient" 来安装telnet客户端,回车后可能有个弹窗,点“是”就重启机器了,

Server 2012/2012R2/2016/2019/2022

管理员身份打开powershell执行命令

查看:Get-WindowsFeature -name "Telnet-Client"

启用:Install-windowsfeature -name "Telnet-Client"

禁用:Uninstall-windowsfeature -name "Telnet-Client"

Server 2008R2

如图,Add Feature → 选Telnet Client即可安装,要卸载反其道而行之

或者管理员身份打开powershell/cmd执行命令

servermanagercmd -install telnet-client

servermanagercmd -remove telnet-client

0 人点赞