Telnet 是基於 TCP 23 端口的遠程登入協議,**明文傳輸帳號密碼**,安全性極差。現代 Windows 預設禁用,僅保留可選安裝。**生產環境請改用 SSH (端口 22, 加密)、RDP (端口 3389)、WinRM (端口 5985/5986)**。本教程僅供教學、老舊設備維護、隔離測試環境使用。





dism /online /enable-feature /featurename:TelnetClient /all /norestartdism /online /enable-feature /featurename:TelnetServer /all /norestart)New-NetFirewallRule -DisplayName "Telnet TCP 23 Inbound" -Direction Inbound -LocalPort 23 -Protocol TCP -Action Allow -Profile Any -Enabled True