Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

ข้อผิดพลาด "The logon attempt failed" ขณะเชื่อมต่อ Remote Desktop

ก่อนหน้านี้เคยแจ้งวิธีเปิด/ปิด Remote Desktop และแก้ไขเมื่อตัดการเชื่อมต่อบ่อย ขณะใช้ Remote Desktop บน Windows 11/10 อาจเจอข้อผิดพลาด The logon attempt failed ตอนเชื่อมจาก Windows 7 อาจทำงานได้ปกติ แต่ Windows 11/10/8.1 อาจเจอข้อผิดพลาดนี้

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop

เพื่อแก้ไข ก่อนอื่นตรวจสอบว่า Windows Firewall ตั้งเป็นปิด ลองใช้ Remote Desktop Modern App แต่ไม่ช่วย อ้างอิง thread Technet แนะนำวิธีที่แก้ไขได้

The logon attempt failed สำหรับการเชื่อมต่อระยะไกล

1. กด Windows Key + R พิมพ์ Firewall.cpl ใน Run กด Enter เปิด Windows Firewall

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop

2. ในหน้าต่าง คลิก Allow an app or feature through Windows Firewall จะได้หน้าต่างด้านล่าง คลิก Change settings ก่อน แล้วใน Allowed apps and features เลื่อนหา Remote Desktop app ติ๊กถูก คลิก OK

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop

รีบูทเครื่อง ปัญหาควรแก้ไขแล้ว แต่ถ้าคอมพิวเตอร์อยู่ในโดเมน โดยค่าเริ่มต้นยังไม่ได้รับอนุญาตให้บันทึก credentials ตอนเชื่อมต่อระยะไกล วิธีแก้:

3. กด Windows Key + R พิมพ์ gpedit.msc ใน Run กด Enter เปิด Local Group Policy Editor

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop

4. ในแถบซ้าย ไปที่:

Computer Configuration -> Administrative Templates -> System -> Credentials Delegation

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop

5. ในแถบขวาที่ตำแหน่งนี้ หานโยบาย Allow delegating saved credentials with NTLM-only server authentication ดับเบิลคลิก เลือก Enabled กด Show ในหน้าต่างถัดไป:

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop

6. ในหน้าต่าง Show Contents ใส่ Value เป็น TERMSRV\Computer Name แทนที่ชื่อคอมพิวเตอร์หลัง TERMSRV\

คลิก OK; Apply; OK ปิด Group Policy Editor

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop

เสร็จแล้ว รีบูทเครื่อง ปัญหาควรแก้ไข

หวังว่าช่วยได้

UPDATE: Dakota North เพิ่มในความคิดเห็น – TERMSRV/*.* คือ syntax ที่ถูกต้อง และอนุญาตทุกเซิร์ฟเวอร์

อ่านเพิ่ม: Your credentials did not work in Remote Desktop.

ข้อผิดพลาด  The logon attempt failed  ขณะเชื่อมต่อ Remote Desktop