ปัญหาการเชื่อมต่อ Remote Desktop พบบ่อย ขณะพยายามเชื่อมต่อเครือข่าย Remote Desktop ผู้ใช้หลายคนรายงานข้อผิดพลาด – Your credentials did not work, The login attempt failed หากคุณเจอปัญหานี้ ขั้นตอนแรกควรตรวจสอบ credentials แต่ผู้ใช้จำนวนมากบันทึกว่า credentials ถูกต้องและในหลายกรณีทำงานได้ดีก่อนหน้านี้ ผู้ใช้รายงานปัญหานี้บน Windows ที่ติดตั้งใหม่ และทันทีหลัง reinstall Windows

Your credentials did not work in Remote Desktop
ปัญหาน่าจะเกิดจาก Windows security policies หรือ username อาจเปลี่ยนไปเมื่อเร็วๆ นี้ โดยเฉพาะเมื่อ reinstall Windows และใส่ username ใหม่ Credentials สำหรับ Windows Remote Desktop connection ไม่เปลี่ยนอัตโนมัติ
แก้ไข Remote Desktop รหัสผ่านผิดหรือไม่ถูกต้อง
เพื่อ troubleshoot ปัญหา เราจะทำตามแนวทางต่อไปนี้ตามลำดับ:
- รัน Network Adapter Troubleshooter
- เปลี่ยน network profile จาก public เป็น private
- เปลี่ยน account username
- แก้ไข Windows Security Policy
- ใช้ Group Policy editor
มาดูขั้นตอนเหล่านี้รายละเอียดกัน
1] รัน Network Adapter Troubleshooter
Network Adapter Troubleshooter จะช่วยตรวจสอบข้อบกพร่องของเครือข่าย (หากมี) และแก้ไข
ไปที่ Start > Settings > Updates & Security > Troubleshoot เลือก Network Adapter Troubleshooter จากรายการ
2] เปลี่ยน network profile จาก public เป็น private
มีรายงานว่าปัญหานี้เกิดบนระบบที่ network profile ตั้งเป็น public การเปลี่ยนเป็น private ช่วยแก้ไขปัญหา
ไปที่ Start > Settings > Network & Internet > Status คลิก Change connection properties

เลื่อน radio button สำหรับ Network profile ไปที่ Private
รอ بضعวินาทีเพื่อให้ระบบปรับเปลี่ยนการตั้งค่า
3] เปลี่ยน account username
หนึ่งในสาเหตุคือเมื่อผู้ใช้ reinstall Windows 10 พวกเขาเปลี่ยน username ของระบบ – แต่ไม่เปลี่ยนสำหรับ Remote Desktop connection ในกรณีนี้ คุณสามารถเปลี่ยน username กลับไปเป็นเดิมก่อน reinstall และดูว่าช่วยได้หรือไม่
4] แก้ไข Windows Security Policy
มี Windows security policy ที่เมื่อเปิดใช้งาน จะไม่ให้ non-admin users logon ไปที่ Remote Desktop connection หากคุณต้องการให้ non-admin users ใช้ Remote Desktop connection คุณต้องแก้ไข policy นี้ ซึ่งเป็นไปได้หากคุณเป็น administrator ของระบบเอง
กด Win + R เปิด Run window พิมพ์คำสั่ง secpol.msc กด Enter เปิด Local Security Policy ในหน้าต่าง Local Security Policy ดานซ้าย เลือก Local Policies > User Rights Agreement
ด้านขวา ดับเบิลคลิกที่ Allow log on through Remote Desktop Services

ในหน้าต่างถัดไป เลือก Add user or group
ภายใต้ “Enter the object names to select column” ใส่ username ของ non-admin user ที่ต้องการ คลิก Check names เพื่อ resolve username
เลือก OK เพื่อบันทึกการตั้งค่า และรีสตาร์ทระบบ
5] ใช้ Group Policy editor
หากต้องการตั้งค่านโยบายนี้ข้ามระบบหลายเครื่อง สามารถทำผ่าน Group Policy Editor ขั้นตอนดังนี้:
กด Win + R เปิด Run window พิมพ์คำสั่ง gpedit.msc กด Enter เปิด Group Policy Editor ไปที่ path:
Computer Configuration > Administrative Templates > System > Credentials Delegation.
ด้านขวา ดับเบิลคลิกที่นโยบาย Allow delegating default credentials with NTLM-only server authentication เพื่อเปิดหน้าต่างแก้ไข
เลื่อน radio button ไปที่ Enabled และคลิก Show
ในกล่อง Value พิมพ์ TERMSRV/* และคลิก OK
ทำซ้ำสำหรับนโยบายต่อไป:
- Allow delegating default credentials
- Allow delegating saved credentials
- Allow delegating saved credentials with NTLM-only server authentication
ตรวจสอบว่าช่วยแก้ไขปัญหาได้หรือไม่
แก้ไข username หรือ password ไม่ถูกต้องสำหรับ Remote Desktop ยังไง?
หากได้ Your credentials did not work หรือ username/password ไม่ถูกต้องสำหรับ Remote Desktop ต้องรัน Network Adapter Troubleshooter, เปลี่ยน username ฯลฯ นอกจากนี้ ยังสามารถเพิ่ม Remote Desktop Users ใน Allow log on through Remote Desktop Services menu ได้
แก้ไข Remote Desktop credentials ยังไง?
หากได้ข้อผิดพลาด Remote Desktop credentials ใดๆ อาจต้องเปลี่ยน network profile type จาก Public เป็น Private, ใช้ Network Adapter Troubleshooter, เปลี่ยน account username ฯลฯ แม้ข้อผิดพลาดนี้ไม่เกิดบ่อย แต่การเปลี่ยนแปลงบางอย่างบนคอมพิวเตอร์อาจก่อให้เกิดปัญหานี้
หวังว่าบางอย่างจะช่วยได้!
อ่านเพิ่มเติม: The logon attempt failed error while connecting Remote Desktop

