Unable to paste clipboard on cmd.exe, powershell.exe or putty through RD Web Client (HTML5)

Nasta 25 Reputation points
2023-01-22T17:09:04.6333333+00:00

Unable to paste clipboard on cmd.exe, powershell.exe or putty through RD Web Client (HTML5)

 

Hi 

via "Remote Desktop web client" it is not possible to paste text from Client towards RDP session on some application (e.g. cmd.exe or putty), other applications like notepad.exe works.

Environment:

1 x Windows Server 2022 with the following roles installed::

  • RD Connection Broker
  • RD License Server
  • RD Web
  • RD Gateway
  • Remote Desktop web client (version 10.0.28.0)

1 x Collection:

  • Name: JH
  • Type: Remote Desktop (no RemoteApp)
  • Server: 1 x Windows Server 2022 as RD Session Host

Browser used: MS Edge

 

Below is the log generated by the browser console when I  try to paste the text into the Notepad application

  • client.73f8fc46.js:1 2023-01-22T16:55:03.850Z ClipboardChannel(NORM): Received clipboard format list response PDU
  • client.73f8fc46.js:1 2023-01-22T16:55:03.850Z ClipboardChannel(NORM): Local clipboard is shared
  • client.73f8fc46.js:1 2023-01-22T16:55:03.851Z [Session] Remote Clipboard format set complete with result [object Object]
  • client.73f8fc46.js:1 2023-01-22T16:55:03.851Z [SessionViewModel] Set remote clipboard formats complete
  • client.73f8fc46.js:1 2023-01-22T16:55:03.883Z ClipboardChannel(NORM): Received clipboard format data request PDU
  • client.73f8fc46.js:1 2023-01-22T16:55:03.884Z [Session] Request for clipboard content received for format [object Object]
  • client.73f8fc46.js:1 2023-01-22T16:55:03.884Z ClipboardFormatConverter(NORM): Converting JS string to the clipboard UnicodeText format

 notepad

Below is the log generated by the browser console when I  try to paste the text into the CMD.exe application

  • Nothing

cmd

No text is paste, same problem with putty and PowerShell application. If I paste the text into a notepad first, then I can paste the text into cmd, putty and Powershell. Via Native RDP (mstsc.exe) the paste is working well.

Is there a way to solve this problem ?

Many thanks

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,122 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,240 questions
0 comments No comments
{count} vote

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2023-01-22T19:03:54.0666667+00:00

    Looks like it may be expected behavior.

    https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client#copy-and-paste-from-the-remote-desktop-web-client

    --please don't forget to upvote and Accept as answer if the reply is helpful--


2 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2023-01-22T18:12:59.1866667+00:00

    I'd check that Quick Edit Mode is checked, then you can use the mouse to select the text to be copied, then press Enter or right-click on the selected text to copy it to the clipboard

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    User's image

    0 comments No comments

  2. Nasta 25 Reputation points
    2023-01-22T18:36:06.2333333+00:00

    Hi Patrick

    thank you very much, but it doesn't solve my problem, I think the problem is related to the RD Web Client (HTML5) , because with the following HTML5 RDP Clients the Clipboard on cmd.exe is working well:

    • Apache Guacamole
    • Parallels HTML5 Client

    As well, is working also with the Native RDP (mstsc.exe)

    As reported above, wenn I paste the text into a notepad first, then I can paste the text into cmd, putty and Powershell. This is because when I paste the text into the Notepad the rdpclip.exe process "reads" my client's clipboard (through the RD Web Client) and "saves" it into the server's clipboard, so it works later when I paste it into the cmd.exe. If this operation occurs directly (paste clipboard from my client to cmd.exe directly), the rdpclip.exe process is not "called"