How to fix a html5 webview RDS clipboard bug on Windows 2022 server?

Beran Tomáš 0 Reputation points
2023-04-11T17:18:06.2733333+00:00

Local clipboard on Webclient (web resources) RDP session doesn't work correctly when it's invoked directly from code. The minimal case is following:

  1. Open a rds session in your Edge browser
  2. In work resources choose Notepad and open it in Work resources.
  3. Write text "Hello World"
  4. Select "Hello"
  5. Click Edit -> Copy (this is important step. Don't use Ctrl+C etc)
  6. Create a new row and press Ctrl+V

Now (I hope) you can see the bug. The text you see is something different than "Hello". Mostly it's the previous clipboard content. What does it mean: Direct manipulation with clipboard (OpenClipboard, SetClipboardData, CloseClipboard) is buggy. But the "system way" through Ctrl+C works fine. And finally the question is: Do you have any idea about workaround? Technically it seems that some message is missing there. Configuration: RDS: Windows server 2022 Standard 64-bit, 21H2. OS build 20348.1607 Client: Windows 10 Pro 64-bit, 22H2. OS build 19045.2728. Browser: MS Edge version 111.0.1661.54 (64-bit)

Windows for business Windows Client for IT Pros User experience Remote desktop services and terminal services
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-04-12T07:21:35.15+00:00

    Hello @Beran Tomáš sounds like a program erro if Ctrl+C work but not via edit. How about other software except notepad, such as Word ? One possible reason could be the Notepad application on the remote server, we could try Reset Notepad from Apps & features/ Notepad/ Advanced options/Reset . Also try using a different web browser to access the Remote Desktop web client. we could also submit detailed feedback via the Feedback Hub at https://aka.ms/rdstorefeedback.

    1 person found this answer helpful.

  2. AZZA MOHAMED ABDEL WAHED 1 Reputation point
    2023-04-14T02:20:37.8666667+00:00

    برنامج المفكرة ، مثل Word؟ قد يكون أحد الأسباب المحتملة هو تطبيق Notepad على الخادم البعيد ، ويمكننا تجربة إعادة تعيين المفكرة من التطبيقات والميزات / المفكرة / الخيارات المتقدمة / إعادة التعيين. حاول أيضًا استخدام مستعرض ويب مختلف للوصول إلى عميل ويب Remote Desktop.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.