How to enable Remote Desktop Services in Windows Server 2016

Các bước kích hoạt Remote Desktop trên Windows Server 2016

Để kích hoạt Remote Desktop trên Windows Server 2016 bạn thực hiện như sau:

Bước 1: mở Server Manager

Bạn sẽ đăng nhập tài khoản quản trị và mở Server Manager từ taskbar hoặc Start Menu Windows Server 2016.

Bước 2: chọn Local Server – kích hoạt Remote Desktop

Bạn chọn tab cấu hình ‘Local Server‘ nằm ở bên trái giao diện Server Manager nhé.

Bạn tiếp tục nhìn dòng cấu hình Remote Desktop , nếu giá trị đang là ‘Disabled‘ thì click vào để chuyển sang giá trị ‘Enabled‘ tức là kích hoạt tính năng Remote Desktop Protocol.

Bước 3: chọn cấu hình cần thiết

Khi cửa sổ System Properties mở ra, click ‘Allow Remote Connection to this computer‘ và ‘Allow connections only from…‘. Sau đó click Apply và click Ok.

Theo mặc định, tài khoản Administrator local sẽ có quyền truy cập vào máy chủ từ xa. Nếu bạn muốn cho user khác được sử dụng Remote Desktop vào Windows Server thì bạn chỉ cần add thêm thông tin tên user đó vào như dưới.

Vậy là qua bài viết này bạn đã biết cách kích hoạt Remote Desktop trên Windows Server 2016 rồi phải không ? Cực kì đơn giản và dễ thao tác, giờ bạn hãy làm xem nào. Nếu có bất kì thắc mắc nào đừng ngại comment bên dưới để trao đổi thêm với ‘Cuongquach.com‘ nhé.

Nguồn://cuongquach.com/

Remote Desktop - Allow access to your PC

  • Article
  • 12/23/2021
  • 3 minutes to read
  • 10 contributors

Is this page helpful?

Yes No

Any additional feedback?

Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy.

Submit

Thank you.

In this article

Applies to: Windows Server 2022, Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2

You can use Remote Desktop to connect to and control your PC from a remote device by using a Microsoft Remote Desktop client [available for Windows, iOS, macOS and Android]. When you allow remote connections to your PC, you can use another device to connect to your PC and have access to all of your apps, files, and network resources as if you were sitting at your desk.

Note

You can use Remote Desktop to connect to Windows 10 Pro and Enterprise, Windows 8.1 and 8 Enterprise and Pro, Windows 7 Professional, Enterprise, and Ultimate, and Windows Server versions newer than Windows Server 2008. You can't connect to computers running a Home edition [like Windows 10 Home].

To connect to a remote PC, that computer must be turned on, it must have a network connection, Remote Desktop must be enabled, you must have network access to the remote computer [this could be through the Internet], and you must have permission to connect. For permission to connect, you must be on the list of users. Before you start a connection, it's a good idea to look up the name of the computer you're connecting to and to make sure Remote Desktop connections are allowed through its firewall.

Activate the Remote Desktop Services license server

  • Bài viết
  • 07/29/2021
  • 2 phút để đọc
  • 4 contributors

Trang này có hữu ích không?

Có Không

Bạn còn phản hồi nào nữa không?

Ý kiến phản hồi sẽ được gửi đến Microsoft: Bằng cách nhấn nút gửi, ý kiến phản hồi của bạn sẽ được sử dụng để cải thiện các sản phẩm và dịch vụ của Microsoft. Chính sách về quyền riêng tư.

Gửi

Cảm ơn bạn.

Trong bài viết này

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016

The Remote Desktop Services license server issues client access licenses [CALs] to users and devices when they access the RD Session Host. You can activate the license server by using the Remote Desktop Licensing Manager.

1. Kích hoạt Remote Desktop bằng GUI

Mở Server Manager và bấm Local Servertừ khung bên trái.Tại đây, bấm Disable trong trường Remote Desktop.

Trong cửa sổ xuất hiện, bậtCho phép kết nối từ xa đếncài đặtmáy tính này.Tại thời điểm này, bạn có thể chọn cho phép kết nối NLA bằng cách bật cài đặt tương ứng mà còn chọn người dùng hoặc nhóm bổ sung nào để kết nối ngoài người quản trị.

Bạn đã bật cài đặt ở trên, bạn sẽ thấy một thông báo kích hoạt quy tắc Tường lửa Windows tương ứng sẽ cho phép Kết nối máy tính từ xa từ bất kỳ địa chỉ nguồn nào.

Khi bạn nâng cấp lên Server Manager, bạn sẽ thấy cài đặt Remote Desktop đã thay đổi thành Enabled.

2. Bật Remote Desktop bằng PowerShell

Để bật Remote Desktop thông qua PowerShell, bạn sẽ cần thêm hai khóa vào sổ đăng ký và một quy tắc trong Tường lửa Windows.Các lệnh nên chạy trong cửa sổ PowerShell với quyền quản trị viên.

Bằng cách chạy lệnh sau, Remote Desktop sẽ được bật, cho phép kết nối thông qua Terminal Services.

New-ItemProperty -Path ‘HKLM:\System\CurrentControlSet\Control\Terminal Server\’ – Name “fDenyTSConnections” -Value 0 -PropertyType dword -Force

Bằng cách chạy lệnh sau, các quy tắc Tường lửa Windows được xác định trước sẽ được kích hoạt cho Remote Desktop trên tất cả các cấu hình.

Enable-NetFirewallRule -DisplayGroup “Remote Desktop”

Cuối cùng, lệnh sau cho phép Xác thực cấp mạng [NLA] cho các kết nối Máy tính từ xa.

New-ItemProperty -Path ‘HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\’ -Name “UserAuthentication” -Value 1 -PropertyType dword -Force

Server Manager

Open the Server Manager console, navigate to the Local Server node, and click the Remote Desktop hyperlink as shown in Figure 2.

The Remote Desktop hyperlink is simply a shortcut to the System Properties sheet from the System Control Panel item. Select Allow remote connections to this computer, and optionally enable Allow connections only from computers running Remote Destkop with Network Level Authentication [recommended].

Network Level Authentication [NLA] protects Windows Server against denial-of-service [DoS] attacks by requiring authentication to take place before any graphical session is established by the server. NLA also conserves server system resources.

Windows PowerShell

From a lower-level perspective, incoming RDP connections are enabled on a server through two Registry values and a Windows Firewall rule.
Open an elevated Windows PowerShell session and run the following commands. This first one creates the fDenyTSConnections value and sets it to 0 [off]. This makes sense, because we don't want to deny Terminal Services [TS] connections.

New-ItemProperty -Path 'HKLM:SystemCurrentControlSetControlTerminal Server' -Name 'fDenyTSConnections' -Value 0 -PropertyType dword -Force

The next command creates and enables the UserAuthentication [Network Layer Authentication] value; NLA is a good idea and you should consider enabling it by default on your servers.

New-ItemProperty -Path 'HKLM:SystemCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp' -Name 'UserAuthentication' -Value 1 -PropertyType dword -Force

The next command enables the predefined "Remote Desktop" Windows Firewall rule. We can then invoke the Get-NetFirewallRule PowerShell cmdlet to verify as shown in Figure 3.
Enable-NetFirewallRule -DisplayGroup 'Remote Desktop'

Video liên quan

Chủ Đề