Hướng dẫn Cách Bật Remote Desktop (RDP) Trên Windows Server 2019, 2022
1. Bật RDP thông qua Server Manager
Đây là cách đơn giản nhất để bật Remote Desktop trên Windows Server.
Bước 1: Mở Server Manager
- Nhấn Windows + S, gõ Server Manager và mở ứng dụng.
Bước 2: Mở cài đặt Remote Desktop
- Trong Server Manager, chọn Local Server ở bảng điều khiển bên trái.
- Ở mục Remote Desktop, nhấp vào Disabled.
- Chọn Allow remote connections to this computer.
- Bỏ chọn Allow connections only from computers running Remote Desktop with Network Level Authentication (NLA) nếu bạn muốn cho phép kết nối từ các máy khách không hỗ trợ NLA.
- Nhấn Apply > OK để lưu cài đặt.
Bước 3: Kiểm tra Firewall
- Mở Windows Defender Firewall.
- Chọn Advanced settings.
- Chọn Inbound Rules > Tìm Remote Desktop (TCP-In).
Nhấn Enable Rule để bật kết nối từ xa.
Bước 4: Kiểm tra và khởi động lại dịch vụ RDP (nếu cần)
- Nhấn Windows + R, nhập services.msc, nhấn Enter.
- Tìm Remote Desktop Services, nhấn chuột phải và chọn Restart.
2. Bật RDP bằng Windows Settings
Bạn cũng có thể bật Remote Desktop qua Settings:
- Nhấn Windows + I để mở Settings.
- Chọn System > Remote Desktop.
- Bật công tắc Enable Remote Desktop.
- Xác nhận bằng cách nhấn Confirm.
3. Bật RDP bằng PowerShell
Nếu bạn muốn bật Remote Desktop nhanh chóng qua PowerShell, hãy thực hiện lệnh sau:
- Mở PowerShell với quyền Admin (Run as Administrator).
Nhập lệnh sau để bật RDP:Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
Restart-Service TermService -Force
- Khởi động lại Windows Server để áp dụng thay đổi.
4. Bật RDP bằng Group Policy (GPO)
Nếu bạn quản lý nhiều máy chủ và muốn bật RDP trên tất cả các máy, hãy sử dụng Group Policy.
Bước 1: Mở Group Policy Editor
- Nhấn Windows + R, nhập gpedit.msc, nhấn Enter.
Bước 2: Cấu hình chính sách
Truy cập đường dẫn:Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections
Nhấp đúp vào Allow users to connect remotely using Remote Desktop Services, chọn Enabled, nhấn OK.
Bước 3: Cập nhật chính sách
- Mở Command Prompt với quyền Admin.
Nhập lệnh:gpupdate /force
- Kiểm tra lại kết nối RDP.
Kết Luận
Bạn có thể bật Remote Desktop trên Windows Server 2019/2022 bằng Server Manager, Windows Settings, PowerShell hoặc Group Policy. Nếu gặp lỗi, hãy kiểm tra Firewall, dịch vụ RDP, và tài khoản người dùng.
Nếu cần thêm hỗ trợ, hãy để lại bình luận nhé! 🚀