Lab Windows Server 2019 – Module 9 Implementing RDS in Windows Server

Module  9 bạn sẽ:

  • Triển khai khai RDS
  • Cấu hình session collection và dùng RDS
  • Thiết lập RemoteApp collection

Exercise 1: Implementing RDS

Exercise 1 bạn sẽ cài RDS, bạn sẽ tạo session collection và thay đổi collection settings. Bạn cũng sẽ cấu hình User Profile Disk using và kết nối Remote Desktop Session Host (RD Session Host) dùng Remote Desktop Web (RD Web) portal.

Bài lab gồn các bước

  1. Cài RDS.
  2. Tạo session collection.
  3. Cấu hình session collection properties.
  4. Kết nối session collection từ RD Web portal

Bài Lab sử dụng máy Dc1 (domain controller), Pc2.ctl.local (Member server)

Task 1: Cài RDS

Task 1: Cài RDS

  1. Tại máy pc02 vào Server Manager, tại Server Manager, chọn 2 Add Roles and Features.
  2. Cửa sổ  Before you begin, ấn Next.
  3. Cửa sổ Select installation type, chọn option Remote Desktop Services installation, ấn Next.

Implementing RDS in Windows Server

4. Cửa sổ Select deployment type, chọn option Standard deployment ấn Next.

5. Cửa sổ Select deployment scenario, chọn option Session-based desktop deployment, ấn Next.

Implementing RDS in Windows Server

6. Cửa sổ Review role services, ấn Next.

7. Cửa sổ Specify RD Connection Broker server, chọn pc02.ctl.local, ấn add sang tay phải, ấn Next.

8. Cửa sổ Specify RD Web Access server, chọn pc02.ctl.local, ấn add sang tay phải, ấn Next.

9. Cửa sổ Specify RD Session Host servers, chọn pc02.ctl.local, ấn add sang tay phải, ấn Next

10. Cửa sổ Confirm selections, check vào Restart destination Server…, ấn Deploy

11. Chờ quá trinh cài hoàn tất (Trong quá trình cài sẽ tự khởi động lại và tiếp tục cài--> hơi lâu) ấn Close

Implementing RDS in Windows Server

Task 2: Tạo Session Collection

Task 2: Tạo Session Collection

Lưu ý: RDS trên Windows Server hỗ trợ 2 loại Session Collections là RD Session Collection, và RemoteApp Session Collection. Tuy nhiên theo mặc định bạn không thể chạy 2loại session collection trên cùng RD Session Host. Trong bài lab này bạn sẽ cấu hình RD Session Host collection trước, kiểm tra kết quả. Sau đó tạo RemoteApp Session collection.

Trước khi thực hiện Task2, tại máy Dc1 vào Run gõ lệnh DSA.MSC, tạo 2 user admin1admin2, tạo Security Group IT, cho admin1admin2 là thành viên Group IT

  1. Tại máy PC02, vào Server Manager, Bên trái chọn Remote Desktop Service và chọn Collections.
  2. Cửa sổ COLLECTIONS bên phải,chọn TASKS, và chọn Create Session Collection.
  3. Cửa sổ Before you begin ấn Next.
  4. Cửa sổ Name the collection, trong phần Name nhập vào IT, ấn Next.
  5. Cửa sổ  Specify RD Session Host servers, chọn Pc02.ctl.local ấn Add sang tay phải và ấn Next.
  6.  Cửa sổ Specify user groups, chọn CTL\Domain Users, ấn Remove và ấn Add.
  7. Trong phần Enter the object names to select, nhập vào group IT, ấn Check Names, và OK, ấn next.
  8. Cửa sổ Specify user profile disks, bỏ checkbox Enable user profile disks ấn Next.
  9. Ấn Next Create. (chờ hoàn tất), ấn Close.

Implementing RDS in Windows Server

Task 3: Cấu hình Session Collection Properties

Task 3: Cấu hình Session Collection Properties

Cấu hình device redirection settings:

  1. Tại PC02, chọn IT collection vừa tạo, cửa sổ PROPERTIES, chọn TASKS, và chọn Edit Properties.

Implementing RDS in Windows Server

2. Cửa sổ Session Collection, bên trái chọn Client Settings, kiểm tra Audio and video playback và Audio recording đã được chọn.

3. Bên trái Chọn User Profile Disks, kiểm tra User Profiles Disks đã bỏ chọn, ấn OK

4. Tại máy PC02 vào PowerShell (runas Administrator) thực hiện lệnh sau để kiểm tra

Get-RDSessionCollectionConfiguration –CollectionName IT –Client | Format-List

quan sát thấy có AudioVideoPlayBack, AudioRecording, PlugAndPlayDevice, SmartCard, Clipboard, Drive

5. Tại Powershell tiếp tục thực hiện lệnh sau

Set-RDSessionCollectionConfiguration –CollectionName IT –ClientDeviceRedirectionOptions PlugAndPlayDevice, SmartCard,Clipboard,LPTPort,Drive

6. Thực hiện lại lệnh:

Get-RDSessionCollectionConfiguration –CollectionName IT –Client | Format-List

quan sát thấy chỉ có PlugAndPlayDevice, SmartCard, Clipboard, LPTPort, Drive

Implementing RDS in Windows Server

Cấu hình User Profile Disks for IT collection:

  1. Tại máy Dc1 vào run gõ lệnh cmd, và Enter.
  2. Tại cửa sổ cmd gõ lệnh Powershell và lần lượt thực hiện các lệnh sau để tạo folder C:\RDSUserProfiles trên máy DC1 và share full quyền cho PC02 và administrator.
  • New-Item C:\RDSUserProfiles -itemtype directory
  • New-SMBShare –Name “RDSUserProfiles” –Path “C:\RDSUserProfiles” –FullAccess “CTL\pc02$”, “CTL\administrator”
  • $acl = Get-Acl C:\RDSUserProfiles
  • $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule(“CTL\pc02$”,”FullControl”,”Allow”)
  • $acl.SetAccessRule($AccessRule)
  • $acl | Set-Acl C:\RDSUserProfiles

Implementing RDS in Windows Server

3. trở lại máy PC02, chọn IT collection, cửa sổ PROPERTIES, chọn TASKS, và chọn Edit Properties.

4. Cửa sổ Session Collection, menu trái chọn User Profile Disks, check chọn Enable user profile disks.

5. Trong phần Location nhập vào \\DC1\RDSUserProfiles. trong phần Maximum size (in GB), nhập vào 10, ấn OK

Implementing RDS in Windows Server

Task 4: Thực hiện Session Collection Dùng RD Web portal

Task 4: Thực hiện Session Collection Dùng RD Web portal

  1. Tại máy host, vào Microsoft Edge https://pc02.ctl.local/rdweb cửa sổ Your connection isn’t private ấn Advanced và chọn Continue to pc02.ctl.local (unsafe)
  2. Cửa sổ RD Web Access, trong phần Domain\user nhập vào ctl\admin1 và passord ấn Sign in.
  3. Cửa sổ RD Web Access, trong phần Current folder: /, chọn IT, download file .RDP về ấn thực thi file .RDP.
  4. Cửa sổ Remote Desktop Connection, ấn Connect, thực hiện connect vào Pc2 thành công, sign out pc2.
  5. Đóng cửa sổ Microsoft Edge.

Implementing RDS in Windows Server

Task 5. Kiểm tra User Profile Disk

Task 5. Kiểm tra User Profile Disk

  1. Trở lại máy DC1 vào folder C:\RDSUserProfiles quan sát thất có file .vhdx với tên file có dạng SID (S-1-5-21)

Exercise 2: Thiết lập RemoteApp collection

Task 1: Tạo và Cấu Hình RemoteApp Collection

Task 1: Tạo và Cấu Hình RemoteApp Collection

  1. Tại máy PC02, vào Server Manager, Bên trái chọn Remote Desktop Service và chọn IT.
  2. Trong phần REMOTEAPP PROGRAMS bên phải,chọn TASKS, và chọn Publish RemoteApp Programs.

Implementing RDS in Windows Server

3. Cửa sổ Select RemoteApp programs, check chọn Paint và WordPad ấn Next.

4. Cửa sổ Confirmation, ấn Publish. Chờ hoàn tất, ấn Close.

5. Quan sát trong phần REMOTEAPP PROGRAMS đã có Paint và WordPad.

Implementing RDS in Windows Server

Task 2: Run RemoteApp from RD Web portal

Task 2: Run RemoteApp from RD Web portal

  1. Tại máy host, vào Microsoft Edge https://pc02.ctl.local/rdweb cửa sổ Your connection isn’t private ấn Advanced và chọn Continue to pc02.ctl.local (unsafe)
  2. Cửa sổ RD Web Access, trong phần Domain\user nhập vào ctl\admin1 và passord ấn Sign in.
  3. Cửa sổ RD Web Access, trong phần Current folder: /, chọn Wordpad, download file .RDP về ấn thực thi file .RDP, ấn Connect
  4. Remote vào Wordpad trên PC02 thành công.
  5. Tương tự thực hiện remote vào Paint.

Implementing RDS in Windows Server

Hoàn tất bài Lab

Lab Windows Server 2019 Module 10