Hello,
Based on my research, the issue appears to be a known problem caused by a system update. Does this problem also occur recently after installing a system update in Windows 11? Some users reported that the issue was resolved after removing a specific update patch (KB5040442), you can try:
How to uninstall a Windows update - Microsoft Support
Reference:
Unable to RDP to Windows 11 via Remote Desktop Gateway - Microsoft Community
I hope this helps.
Best regards
Jacen
——————————————————————————————————
If the Answer is helpful, please click "Accept Answer" and upvote it.