บทช่วยสอนนี้มีคำแนะนำสำหรับแก้ไขข้อผิดพลาด "To sign in remotely, you need the right to sign in through Remote Desktop Services" (เพื่อลงชื่อเข้าใช้จากระยะไกล คุณต้องมีสิทธิ์ลงชื่อเข้าใช้ผ่าน Remote Desktop Services) เมื่อพยายามเชื่อมต่อจาก Windows Remote Desktop (RDP) Client ไปยัง Windows Server 2016 ที่กำลังรัน Remote Desktop Services

รายละเอียดปัญหา: ผู้ใช้ Remote Desktop Client ไม่สามารถเชื่อมต่อจากระยะไกล (ผ่าน RDP) ไปยัง Terminal Server 2016 ได้ และได้รับข้อผิดพลาด: "To sign in remotely, you need the right to sign in through Remote Desktop Services. By default members of the Administrators group have this right. If the group you're in does not have the right, or if the right has been removed from the Administrators group, you need to be granted the right manually."
วิธีแก้: To sign in remotely, you need the right to sign in through Remote Desktop Services
เพื่อแก้ไขข้อผิดพลาด "To sign in remotely, you need the right to sign in through Remote Desktop Services" ให้ดำเนินการต่อไปนี้บน Remote Desktop Services (RDS) Server 2016:
ขั้นตอนที่ 1: เพิ่มผู้ใช้ Remote Desktop เข้ากับกลุ่ม Remote Desktop Users
- เปิด Server Manager (ตัวจัดการเซิร์ฟเวอร์)
- จากเมนู Tools (เครื่องมือ) เลือก Active Directory Users and Computers *
* หมายเหตุ: หาก RD Session Host Server ไม่ได้ติดตั้งบน Domain Controller ให้ใช้ snap-in 'Local Users and Groups' หรือแท็บ 'Remote' ใน 'System Properties' เพื่อเพิ่มผู้ใช้ Remote Desktop

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

- ที่แท็บ Members (สมาชิก) คลิก Add (เพิ่ม)

- พิมพ์ชื่อผู้ใช้ AD ที่ต้องการให้เข้าถึง RDS Server จากระยะไกล แล้วคลิก OK

- หลังเลือกผู้ใช้ Remote Desktop แล้ว คลิก OK อีกครั้งเพื่อปิดหน้าต่าง

- ดำเนินการต่อไปที่ ขั้นตอนที่ 2 ด้านล่าง
ขั้นตอนที่ 2: อนุญาตให้ล็อกอินผ่าน Remote Desktop Services
- เปิด Group Policy Editor วิธีทำ:
- กด Windows
+ R พร้อมกันเพื่อเปิดกล่องคำสั่ง Run - พิมพ์ gpedit.msc แล้วกด Enter
- กด Windows

- ใน Group Policy Editor ไปที่: Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment
- ที่แถบด้านขวา: ดับเบิลคลิกที่ Allow log on through Remote Desktop Services (อนุญาตให้ล็อกอินผ่าน Remote Desktop Services)

- คลิก Add User or Group (เพิ่มผู้ใช้หรือกลุ่ม)

- พิมพ์ remote แล้วคลิก Check Names (ตรวจสอบชื่อ)

- เลือก Remote Desktop Users แล้วคลิก OK

- คลิก OK ที่หน้าต่าง 'Select users, computers…'

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

- ตอนนี้ลองเชื่อมต่อจาก Remote Desktop Client ปัญหาการลงชื่อเข้าใช้จากระยะไกลควรแก้ไขได้แล้ว *
* หมายเหตุ:
1. หากยังมีปัญหาการลงชื่อเข้าใช้ ให้ Restart (รีสตาร์ท) RDS Server หรือเปิด Command Prompt as Administrator พิมพ์คำสั่งต่อไปนี้เพื่อบังคับใช้ Group Policy ใหม่ (โดยไม่ต้องรีสตาร์ท):
- gpupdate /force

2. (ขอบคุณ 'Jeff Flora' สำหรับคำแนะนำ/วิธีแก้): หากหลังอัปเดต Group Policy แล้วปัญหายังไม่หาย ให้ทำการเปลี่ยนแปลงต่อไปนี้ใน Group Policy Editor:
- ไปที่ Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment
- เปิดนโยบาย Deny log on through Remote Desktop Services (ปฏิเสธการล็อกอินผ่าน Remote Desktop Services) และ Remove (ลบ) กลุ่ม Users ออก
- ปิด Policy Editor และรันคำสั่ง gpupdate /force
เสร็จสิ้น! แจ้งให้เราทราบว่าคู่มือนี้ช่วยคุณได้หรือไม่ โดยแสดงความคิดเห็นเกี่ยวกับประสบการณ์ของคุณ กรุณากดไลค์และแชร์คู่มือนี้เพื่อช่วยผู้อื่น