Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> การบำรุงรักษาคอมพิวเตอร์

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

บทความนี้มีคำแนะนำทีละขั้นตอนเกี่ยวกับวิธีติดตั้งและกำหนดค่า Remote Desktop Services บน Windows Server 2016 หรือ 2012 ใน Windows Server 2016 & 2012 บทบาท Terminal Services ถูกแทนที่ด้วย Remote Desktop Session Host (RDSH) role service และเป็นส่วนหนึ่งของ Remote Desktop Services (RDS) เซิร์ฟเวอร์ Remote Desktop Session Host (RDSH) ให้ความสามารถแก่ผู้ใช้ระยะไกลในการเข้าถึงแอปพลิเคชันบน RDS host server และทรัพยากรของบริษัทจากที่ใดก็ได้ โดยใช้ RDP client

ในบทช่วยสอนนี้ คุณจะได้เรียนรู้วิธีตั้งค่าและกำหนดค่า Windows Server 2016 หรือ 2012 เป็น Remote Desktop Session Host (Terminal) server เพื่อให้บริการ remote desktop sessions ตามจำนวน Remote Desktop Services client access licenses (RDS CALs) ที่ติดตั้งบน RDSH server

วิธีตั้งค่าและกำหนดค่า Windows Server 2016/2012 เป็น Remote Desktop Session Host Server (Terminal Server)

หมายเหตุ:
1. ขั้นตอนที่กล่าวมาด้านล่าง สามารถใช้ได้ทั้งบน Domain Controller หรือ standalone server 2016/2012
2. หาก Terminal services ติดตั้งบนเซิร์ฟเวอร์ที่จะทำหน้าที่เป็น Domain Controller ด้วย ให้ติดตั้ง Active Directory Domain Service (AD DS) role service และโปรโมต Server เป็น Domain Controller ก่อน ติดตั้ง Remote Desktop Session Host (RDSH) role service (Terminal Service)
3. โปรดทราบว่าการกำหนดค่าด้านล่างไม่ได้ให้การเข้าถึง RemoteApp programs หรือ RDWeb site เนื่องจาก Remote Desktop Connection Broker role service จะไม่ได้ติดตั้ง

ขั้นตอนที่ 1: ติดตั้ง Remote Desktop Services บน Server 2016/2012
ขั้นตอนที่ 2: เปิดใช้งาน Remote Desktop License Server
ขั้นตอนที่ 3: ติดตั้ง Licenses บน Remote Desktop License Server
ขั้นตอนที่ 4: กำหนดค่า RD Session Host role ให้ใช้ local Remote Desktop Licensing server & ตั้งค่า Remote Desktop licensing mode
ขั้นตอนที่ 5: เพิ่ม RD Clients (Users) เข้า Remote Desktop Users Group
ขั้นตอนที่ 6: อนุญาตให้ล็อกอินผ่าน Remote Desktop Services

ขั้นตอนที่ 1: ติดตั้ง Remote Desktop Licensing และ Remote Desktop Session Host role services

1. เปิด 'Server Manager' และคลิก Add Roles and Features

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

2. ที่หน้าจอแรกของ 'Add Roles and Features wizard' ทิ้งตัวเลือก Role-based or feature-based installation และคลิก Next

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

3. ที่หน้าจอถัดไป ทิ้งตัวเลือกเริ่มต้น "Select server from the server pool" และคลิก Next

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

4. เลือก Remote Desktop Services และคลิก Next

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

5. ทิ้งการตั้งค่าเริ่มต้นและคลิก Next ที่ Features และ Remote Desktop Services หน้าจอ
6. ที่หน้าจอ Role Services เลือก role service Remote Desktop Licensing แล้วคลิก Add Features

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

7. จากนั้นเลือก role service Remote Desktop Session Host และคลิก Add Features อีกครั้ง

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

8. เมื่อเสร็จแล้ว คลิก Next เพื่อดำเนินต่อ

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

9. สุดท้าย คลิก Install เพื่อติดตั้ง Remote Desktop Services: Remote Desktop Licensing และ Remote Desktop Session Host

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

10. เมื่อการติดตั้งเสร็จสิ้น ปิด 'Add Roles and Features Wizard' และ restart เซิร์ฟเวอร์ของคุณ

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

ขั้นตอนที่ 2: เปิดใช้งาน Remote Desktop License Server

1. กด Windows คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012 + R พร้อมกัน เพื่อเปิดกล่องคำสั่ง run
2. พิมพ์ licmgr.exe และกด Enter เพื่อเปิด RD Licensing Manager *

* หมายเหตุ: หรือคุณสามารถเปิด RD Licensing Manager ได้จาก Control Panel → Administrative Tools → Remote Desktop Services → Remote Desktop Licensing Manager

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

3. ที่แผงด้านขวา คลิกขวาที่ชื่อเซิร์ฟเวอร์ และเลือก Activate Server

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

4. คลิก Next ที่หน้าจอต้อนรับ และคลิก Next อีกครั้งที่ตัวเลือก Connection method

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

5. ที่หน้าต่าง 'Company Information' ใส่ข้อมูลที่จำเป็น และคลิก Next สองครั้ง เพื่อเปิดใช้งาน License Server ของคุณ

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

6. เมื่อการเปิดใช้งานเสร็จสิ้น ให้ติ๊กช่อง 'Start Install Licenses Wizard' และคลิก Next

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

7. ดำเนินต่อไปที่ขั้นตอนถัดไป

ขั้นตอนที่ 3: ติดตั้ง Licenses บน Remote Desktop License Server

1. ที่ 'Welcome to the install licenses wizard' คลิก Next

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

2. ที่หน้า License Program เลือกโปรแกรมที่เหมาะสมซึ่งคุณซื้อ RDS CALs ผ่าน แล้วคลิก Next

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

3. ตาม License Program ที่คุณเลือกในหน้าก่อนหน้า ให้พิมพ์ license code หรือ agreement number ที่ได้รับเมื่อซื้อ RDS CALs แล้วคลิก Next

4. ที่หน้า Product Version and License Type เลือก product version, license type และจำนวน RDS CALs ที่เหมาะสมตามข้อตกลงการซื้อ RDS CALs ของคุณ แล้วคลิก Next

5. เมื่อ RDS CALs ติดตั้งบนเซิร์ฟเวอร์แล้ว คลิก Finish *

เคล็ดลับ: หากคุณไม่สามารถเปิดใช้งาน RDS Server แบบอัตโนมัติได้ ให้ลองเปิดใช้งานผ่าน Web Browser หรือโทรศัพท์ วิธีการมีดังนี้:

a. คลิกขวาที่ชื่อเซิร์ฟเวอร์ และเลือก Properties
b. เปลี่ยน Connection Method เป็น Web Browser หรือ Telephone เมื่อเสร็จแล้ว คลิก OK
c. สุดท้าย คลิกขวาที่ชื่อเซิร์ฟเวอร์ เลือก Activate Server และทำตามคำแนะนำบนหน้าจอเพื่อเสร็จสิ้นการเปิดใช้งาน

ขั้นตอนที่ 4: กำหนดค่า RD Session Host role ให้ใช้ local Remote Desktop Licensing server & ตั้งค่า Remote Desktop licensing mode

1. เปิด Group Policy Editor วิธีการมีดังนี้:

1. กด Windows คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012 + R พร้อมกัน เพื่อเปิดกล่องคำสั่ง run
2. พิมพ์ gpedit.msc และกด Enter

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

2. ใน Group Policy Editor ไปที่:

  • Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\ Licensing

3. ที่แผงด้านขวา ดับเบิลคลิกที่ Use the specified Remote License Servers

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

4. คลิก Enabled และที่ช่อง 'License server to use' พิมพ์ชื่อ RDS license server และคลิก OK

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

5. จากนั้นเปิดการตั้งค่า Set the Remote Desktop licensing mode

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

6. คลิก Enabled และระบุ licensing mode (Per User หรือ Per Device) สำหรับ RDS host server แล้วคลิก OK อีกครั้ง

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

7. ปิด Group Policy Editor
8. ตรวจสอบการกำหนดค่า RD Licensing โดยไปที่: Windows Control Panel → Administrative Tools → Remote Desktop Services → RD Licensing Diagnoser

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

ขั้นตอนที่ 5: เพิ่ม RD Clients (Users) เข้า Remote Desktop Users Group

1. เปิด Server Manager
2. จากเมนู Tools เลือก Active Directory Users and Computers *

* หมายเหตุ: หาก RD Session Host Service ไม่ได้ติดตั้งบน Domain Controller ให้ใช้ snap-in 'Local Users and Groups' หรือแท็บ 'Remote' ใน 'System Properties' บน RDS host server เพื่อเพิ่ม remote desktop users

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

3. ดับเบิลคลิกที่โดเมนของคุณด้านซ้าย แล้วเลือก Builtin
4.
เปิด Remote Desktop Users ด้านขวา

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

5. ที่แท็บ Members คลิก Add

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

6. พิมพ์ชื่อผู้ใช้ที่คุณต้องการให้เข้าถึง RDS Server แบบระยะไกล และคลิก OK

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

7. หลังจากเลือก remote desktop users แล้ว คลิก OK อีกครั้งเพื่อปิดหน้าต่าง

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

8. ดำเนินต่อไปที่ step-6 ด้านล่าง

ขั้นตอนที่ 6: อนุญาตให้ล็อกอินผ่าน Remote Desktop Services

1. เปิด Local Group Policy Editor วิธีการมีดังนี้:

1. กด Windows คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012 + R พร้อมกัน เพื่อเปิดกล่องคำสั่ง run
2. พิมพ์ gpedit.msc และกด Enter

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

2. ใน Group Policy Editor ไปที่: Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment

3. ที่แผงด้านขวา: ดับเบิลคลิกที่ Allow log on through Remote Desktop Services

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

4. คลิก Add User or Group

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

5. คลิก Object Types ติ๊ก objects ทั้งหมดที่มี (Users, Groups, & Built-in security principals) แล้วคลิก OK

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

6. พิมพ์ remote desktop users แล้วคลิก OK

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

7. สุดท้าย คลิก OK อีกครั้ง และ ปิด Group Policy Editor

คู่มือทีละขั้นตอน: การติดตั้ง Remote Desktop Services บน Windows Server 2016/2012

8. ตอนนี้คุณพร้อมที่จะเชื่อมต่อกับ Remote Desktop Session Host Server 2016/2012 จาก remote desktop client ใดๆ

เสร็จแล้ว! แจ้งให้ทราบว่าคู่มือนี้ช่วยได้หรือไม่ โดยทิ้งความคิดเห็นเกี่ยวกับประสบการณ์ของคุณ โปรดกดไลก์และแชร์คู่มือนี้เพื่อช่วยผู้อื่น