Mặc định trên Windows Server, lệnh telnet báo lỗi: "is not recognized as an internal or external command..." vì Telnet Client bị tắt. Bài viết cung cấp 3 cách bật Telnet Client trên Server 2019, 2016, 2012.
Cách cài đặt Telnet Client trên Windows Server 2012/2016/2019
Phương pháp 1: Cài từ PowerShell (Khuyên dùng)
- Mở Windows PowerShell.
- Chạy lệnh:
Install-WindowsFeature -name Telnet-Client
- Khi cài xong, Telnet đã sẵn sàng dùng.
Lưu ý: Để tắt Telnet, chạy: Remove-WindowsFeature -name Telnet-Client
Phương pháp 2: Cài từ Command Prompt dùng DISM
- Mở Command Prompt (hoặc PowerShell).
- Chạy lệnh DISM:
dism /online /Enable-Feature /FeatureName:TelnetClient
Phương pháp 3: Cài từ Server Manager (GUI)
- Mở Server Manager → nhấp Add Roles and Features.
- Màn hình đầu tiên: giữ nguyên Role-based or feature-based installation → Next.
- Chọn Select server from the server pool (mặc định) → Next.
- Tab Server Roles → Next (không cần chọn role nào).
- Tab Features → tích Telnet Client → Next.
- Màn hình xác nhận → nhấp Install.
- Khi cài xong → Close.