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

RDP Authentication error: Function requested is not supported

หากพยายามใช้ Remote Desktop Connection ระหว่างคอมพิวเตอร์ Windows สองเครื่อง และได้ข้อความผิดพลาด – Remote Desktop Connection error, An Authentication error has occurred, The Function requested is not supported โพสต์นี้ช่วยคุณ ในโพสต์นี้จะระบุสาเหตุที่รู้จักซึ่งอาจก่อให้เกิดข้อผิดพลาด และให้โซลูชันที่เป็นไปได้เพื่อช่วยแก้ไขปัญหานี้

เมื่อ Remote Desktop Connection authentication ล้มเหลว จะได้ข้อความผิดพลาด:

Remote Desktop Connection

An authentication error has occurred.
The function requested is not supported.

Remote computer: Computer_Name or IP_Address
This could be due to CredSSP encryption oracle remediation.
For more information, see https://go.microsoft.com/fwlink/?linkid=866660

RDP Authentication error: Function requested is not supported

เห็นจากภาพข้างต้น ข้อความผิดพลาดเกิดจาก CredSPP Encryption Oracle Remediation สามารถแก้ 'An authentication error has occurred, This could be due to CredSSP encryption oracle remediation' error ด้วย Registry หรือ Group Policy Editor

Microsoft ค้นพบช่องโหว่การรันโค้ดระยะไกล (CVE-2018-0886: encryption oracle attack) ใน CredSSP versions โจมตีที่ exploit ช่องโหว่นี้สำเร็จ สามารถส่งต่อ user credentials เพื่อรันโค้ดบนระบบเป้าหมาย ดังนั้น แอปพลิเคชันที่ขึ้นอยู่กับ CredSSP สำหรับ authentication อ่อนไหวต่อการโจมตีแบบนี้

เพื่อแก้ไขความเสี่ยงด้านความปลอดภัยนี้ Microsoft เปล่อย security update แก้ช่องโหว่ โดยแก้ไขวิธีที่ CredSSP validate requests ระหว่าง authentication process Patch อัปเดต CredSSP authentication protocol และ Remote Desktop clients สำหรับทุกแพลตฟอร์มที่ได้รับผลกระทบ

หลังติดตั้งอัปเดต patched clients ไม่สามารถสื่อสารกับ unpatched servers ได้ กล่าวคือ หาก client computer ติดตั้ง security update แล้ว แต่ server computer ไม่ได้อัปเดต security update (หรือในทางกลับกัน) การเชื่อมต่อระยะไกลจะไม่สำเร็จ และผู้ใช้ได้รับข้อความผิดพลาดข้างต้น

RDP Authentication error: Function requested is not supported

หากเจอ Remote Desktop Connection error, An Authentication error has occurred, The Function requested is not supported error message ลองวิธีแก้ที่แนะนำด้านล่าง:

  1. อัปเดต Windows 10 ด้วย security patches ล่าสุด
  2. แก้ไขนโยบาย Encryption Oracle Remediation
  3. สร้างและกำหนดค่า registry key AllowEncryptionOracle

มาดูคำอธิบายกระบวนการเกี่ยวกับแต่ละวิธีแก้

1] อัปเดต Windows 10 ด้วย security patches ล่าสุด

ในวิธีนี้ แนะนำติดตั้ง CredSSP security patch ในทั้งสองคอมพิวเตอร์ (server และ client) หรือคลิก Start > Settings > Update & Security > Windows Update > Check for Updates ดาวน์โหลดและติดตั้ง cumulative update ล่าสุด

เมื่อทั้งสองคอมพิวเตอร์ติดตั้ง CredSSP patch แล้ว An Authentication error has occurred – The Function requested is not supported error message จะถูกแก้ไข

หากด้วยเหตุผลบางอย่าง ไม่สามารถติดตั้ง security update ใน server หรือ client computer ได้ สามารถใช้วิธี 2 และ 3 ด้านล่าง

2] แก้ไขนโยบาย Encryption Oracle Remediation

ข้อความผิดพลาดสามารถแก้ได้โดยใช้ Group Policy editor แก้ไขนโยบาย Encryption Oracle Remediation

RDP Authentication error: Function requested is not supported

Note: วิธีนี้ไม่ใช้กับ Windows 10 Home edition เพราะ Local Group Policy Editor ไม่ติดตั้งมาตรฐาน แต่สามารถแก้ได้โดยเพิ่ม Local Group Policy Editor ให้ Windows 10 Home edition

เพื่อเปิดใช้งาน Encryption Oracle Remediation policy ให้ทำดังนี้:

  • กด Windows key + R
  • ใน Run dialog box พิมพ์ gpedit.msc กด Enter เปิด Group Policy Editor
  • ใน Local Group Policy Editor ใช้แถบซ้ายไปที่เส้นทาง:

Computer Configuration > Administrative Templates > System > Credentials Delegation

  • บนแถบขวา คลิกสองครั้งที่ Encryption Oracle Remediation เพื่อแก้ไข properties
  • เมื่อ Encryption Oracle Remediation policy เปิด ตั้ง radio button เป็น Enabled
  • เลื่อนลงไป Protection Level เปลี่ยนเป็น Vulnerable
  • คลิก Apply > OK บันทึกการเปลี่ยนแปลง

ตอนนี้ออกจาก Local Policy Editor รีสตาร์ทคอมพิวเตอร์ ตอนบูต ลอง RDP connection อีกครั้ง ดูว่าปัญหาแก้ไขหรือไม่

3] สร้างและกำหนดค่า AllowEncryptionOracle registry key

นี่คือเทียบเท่าการเปิดใช้งาน Encryption Oracle Remediation policy สามารถแก้ปัญหาได้โดยสร้างและกำหนดค่า registry key ต่อไปนี้:

AllowEncryptionOracle: DWORD: 2

RDP Authentication error: Function requested is not supported

เนื่องจากเป็นการดำเนินการ registry ขอแนะนำสำรอง registry หรือสร้าง system restore point เผื่อขั้นตอนผิดพลาด

หลังจากมาตรการป้องกันแล้ว สามารถดำเนินการต่อ:

  • กด Windows key + R
  • ใน Run dialog box พิมพ์ regedit กด Enter เปิด Registry Editor
  • ไปที่หรือโจมป์ไปที่เส้นทาง registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  • คลิกขวา System, เลือก New > Key ตั้งชื่อ CredSSP.
  • ต่อไป คลิกขวา CredSSP, เลือก New > Key ตั้งชื่อ Parameters.
  • ตอนนี้ คลิกขวาพื้นที่ว่างแถบขวา เลือก New > DWORD (32-bit) Value
  • เปลี่ยนชื่อ value name เป็น AllowEncryptionOracle กด Enter
  • คลิกสองครั้งที่ค่าใหม่แก้ไข properties
  • ใส่ 2 ใน Value data box กด Enter บันทึก
  • ปิด Registry Editor รีสตาร์ท PC

ตอนนี้ควรสามารถเชื่อมต่อ Remote Desktop Connection ได้สำเร็จ!

RDP Authentication error: Function requested is not supported