---
title: "Windows Server Remote Desktop Services: Cách cài đặt và phân quyền bảo mật chuẩn"
description: "Hướng dẫn cấu hình Remote Desktop Services (RDS) trên Windows Server VPS chuẩn bảo mật: bật NLA, phân quyền Remote Desktop Users và giới hạn phiên."
canonical: "https://thuecloud.vn/windows-server-remote-desktop-services-cach-cai-dat-va-phan-quyen-bao-mat-chuan"
markdown_url: "https://thuecloud.vn/windows-server-remote-desktop-services-cach-cai-dat-va-phan-quyen-bao-mat-chuan.md"
locale: "vi"
kind: "article"
published_at: "2026-11-22T16:18:21.713Z"
updated_at: "2026-11-22T16:18:18.845Z"
site: "ThueCloud.Vn"
estimated_tokens: 1977
---
# Windows Server Remote Desktop Services: Cách cài đặt và phân quyền bảo mật chuẩn

> Hướng dẫn cấu hình Remote Desktop Services (RDS) trên Windows Server VPS chuẩn bảo mật: bật NLA, phân quyền Remote Desktop Users và giới hạn phiên.

- Canonical HTML: https://thuecloud.vn/windows-server-remote-desktop-services-cach-cai-dat-va-phan-quyen-bao-mat-chuan
- Markdown URL: https://thuecloud.vn/windows-server-remote-desktop-services-cach-cai-dat-va-phan-quyen-bao-mat-chuan.md
- Organization: ThueCloud.Vn
- Support Email: support@thuecloud.vn
- Hotline: 03333 499 48
- Published: 2026-11-22
- Updated: 2026-11-22

## Mục lục

- Bật Remote Desktop và ép buộc xác thực NLA
- Tạo User riêng và phân quyền nhóm Remote Desktop Users
- Giới hạn tài nguyên và chính sách phiên RDP
- Câu hỏi thường gặp (FAQ)
  - Mặc định Windows Server cho phép tối đa bao nhiêu người kết nối RDP cùng lúc?
  - Bật NLA có làm người dùng macOS hoặc Linux không kết nối được vào VPS không?
  - Làm sao kiểm tra nhanh xem có bao nhiêu user đang đăng nhập RDP vào máy chủ?

Khi nhiều nhân viên hoặc kỹ thuật viên cùng cần truy cập vào một máy chủ [Cloud VPS Việt Nam](https://thuecloud.vn/vps-viet-nam) chạy Windows Server để vận hành phần mềm kế toán, tool MMO hoặc quản trị hệ thống, việc chia sẻ chung một tài khoản `Administrator` là cực kỳ nguy hiểm. Cấu hình **Remote Desktop Services (RDS)** kết hợp phân quyền nhóm người dùng chuẩn sẽ giúp bạn kiểm soát chặt chẽ từng phiên làm việc.

> **Tóm tắt nhanh (TL;DR):**
> - Kích hoạt **Network Level Authentication (NLA)** để chặn kết nối RDP chưa xác thực trước khi tải màn hình đăng nhập Windows.
> - Tạo tài khoản user riêng và chỉ cấp quyền vào nhóm `Remote Desktop Users` (không cấp quyền `Administrators` nếu không cần thiết).
> - Thiết lập giới hạn thời gian treo phiên (Idle Session Timeout) để giải phóng RAM cho VPS.
> - *Cập nhật: 11/2026*

## 1. Bật Remote Desktop và ép buộc xác thực NLA

Mở PowerShell với quyền Administrator để bật kết nối RDP và kích hoạt tính năng bảo mật **NLA (Network Level Authentication)** ở mức hệ thống:

```powershell
# Bật dịch vụ Remote Desktop
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0

# Ép buộc xác thực NLA (chặn brute-force giao diện Login)
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name "UserAuthentication" -Value 1
```

## 2. Tạo User riêng và phân quyền nhóm `Remote Desktop Users`

Thay vì đưa mật khẩu `Administrator`, hãy tạo tài khoản riêng cho từng nhân sự:

```powershell
$Password = ConvertTo-SecureString "StaffPass2026!@#" -AsPlainText -Force
New-LocalUser -Name "nhanvien01" -Password $Password -FullName "Nhan Vien Van Hanh" -PasswordNeverExpires
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "nhanvien01"
```

Với nhóm `Remote Desktop Users`, người dùng có thể đăng nhập RDP và chạy các ứng dụng được phép, nhưng **không thể** cài đặt phần mềm lạ vào hệ thống, sửa rule Firewall hay xem dữ liệu trong thư mục riêng của `Administrator`.

## 3. Giới hạn tài nguyên và chính sách phiên RDP

Khi nhiều người đăng nhập và chỉ bấm dấu `X` tắt cửa sổ thay vì Sign out, các phiên ngầm (Disconnected Sessions) sẽ tiếp tục ngốn RAM. Hãy mở `gpedit.msc` -> **Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits**:
- Đặt **Set time limit for disconnected sessions**: `1 hour` (tự đóng phiên bị ngắt kết nối quá 1 tiếng).
- Đặt **Set time limit for active but idle Remote Desktop Services sessions**: `2 hours`.

| Thiết lập RDS | Mặc định Windows Server | Khuyến nghị Production |
| :--- | :--- | :--- |
| Network Level Authentication (NLA) | Bật (tùy template) | Bắt buộc bật (`UserAuthentication = 1`) |
| Tài khoản đăng nhập | Dùng chung `Administrator` | Tách user thuộc nhóm `Remote Desktop Users` |
| Phiên Disconnected | Giữ vô thời hạn (gây tốn RAM) | Tự động đăng xuất sau 30 - 60 phút |

Nếu bạn đang triển khai các hệ thống AI nội bộ hoặc muốn bảo vệ truy cập từ xa an toàn hơn nữa, hãy tham khảo thêm bài [triển khai Dify AI RAG cho phòng khám](https://thuecloud.vn/trien-khai-ai-automation-nganh-y-te-phong-kham-bang-dify-ai-rag-tren-cloud-vps) hoặc [cách di chuyển hệ thống từ PaaS về Cloud VPS tiết kiệm 70%](https://thuecloud.vn/trien-khai-nestjs-docker-compose-postgresql-di-chuyen-tu-nen-tang-paas-dat-do-ve-cloud-vps-viet-nam-tiet-kiem-70). Xem thêm [câu hỏi thường gặp](https://thuecloud.vn/faq) về Windows VPS.

> **Vận hành Windows Server ổn định tại ThueCloud.Vn:**
> Hạ tầng KVM Enterprise NVMe tại cụm **vn-hn** mang lại độ trễ cực thấp khi thao tác qua Remote Desktop. Cam kết **SLA 99,9%**, **VAT 0%** và **hoàn tiền 07 ngày**, khởi tạo dễ dàng từ **VPS VN 2** (`78.000đ` - `90.000đ`) hoặc **VPS VN 3** (`139.000đ` - `170.000đ`) tại [bảng giá ThueCloud](https://thuecloud.vn/pricing).

## Câu hỏi thường gặp (FAQ)

### Mặc định Windows Server cho phép tối đa bao nhiêu người kết nối RDP cùng lúc?
Ở chế độ quản trị mặc định (Remote Desktop for Administration), Windows Server cho phép tối đa **2 phiên kết nối đồng thời**. Nếu cần 3 người trở lên cùng thao tác giao diện, bạn cần cài đặt vai trò Remote Desktop Session Host (RDSH) và trang bị RDS CAL.

### Bật NLA có làm người dùng macOS hoặc Linux không kết nối được vào VPS không?
Không. Các trình khách phổ biến hiện nay như Windows App (trên macOS/iOS) và Remmina/FreeRDP (trên Linux) đều hỗ trợ đầy đủ giao thức NLA.

### Làm sao kiểm tra nhanh xem có bao nhiêu user đang đăng nhập RDP vào máy chủ?
Bạn mở PowerShell hoặc CMD và gõ lệnh `qwinsta` (Query Session) để xem toàn bộ danh sách phiên đang Active hoặc Disconnected.

## References / Sources

- https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/welcome-to-rds
- https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-allow-access

---

## Navigation & Machine-Readable Endpoints

- [Site Summary (llms.txt)](https://thuecloud.vn/llms.txt)
- [Full Technical Reference (llms-full.txt)](https://thuecloud.vn/llms-full.txt)
- [Pricing Catalog (Markdown)](https://thuecloud.vn/pricing.md)
- [Blog & Technical Guides (Markdown)](https://thuecloud.vn/blog.md)
- [XML Sitemap](https://thuecloud.vn/sitemap.xml)
