question

VarunGupta-7796 avatar image
1 Vote"
VarunGupta-7796 asked BalaP-9654 published

Copy / Paste stops working after sometime on mstsc

Hi team,

I am facing an issue at this issue in my environment. Copy / paste works when I login first time using mstsc. Once I disconnect my session, and connect again after time, Copy/paste stops working. I have to kill rdpclip.exe and start again to get copy/paste working again.

This happens for all the users on the server.

I have run sfc /scannow, and utility has returned " No integrity violations found ".

Host machine : Windows Server 2012

Target: Windows 10

windows-serverremote-desktop-client
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

yagmoth555 avatar image
0 Votes"
yagmoth555 answered

Hi

Please check on your machine from where you connect. Such problem often arise when an application that catch the copy/paste prevent MSTSC from accessing the data.

Thanks


Philippe

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeilaKong-MSFT avatar image
1 Vote"
LeilaKong-MSFT answered BalaP-9654 published

Hello anonymous user-7796 ,

Thanks for your query.

1.Please ensure the “Clipboard” and “Drive” is enabled on the RDP connection window.

RDP-Clipboard-option-and-More-button.png

RDP-Drives-option.png

Fix – Unable to Copy and Paste to Remote Desktop Session: https://www.technipages.com/unable-to-copy-and-paste-to-remote-desktop-session

2.The clipboard viewer chain is somehow becoming unresponsive on the local or remote system and events on the clipboards are not being relayed between systems. It is not necessarily a lock being put in place but some sort of failed data transmission. It then goes on to explain the 2 steps you can take to restore the clipboard without restarting your session.
Use Task Manager to kill the rdpclip.exe process
Run rdpclip.exe to restart it
Can't copy and paste in Remote Desktop Connection session: https://superuser.com/questions/95609/cant-copy-and-paste-in-remote-desktop-connection-session


Best regards,
Leila


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

For me killing rdpclip in both remote and local fixed the issue.

0 Votes 0 ·
VarunGupta-7796 avatar image
0 Votes"
VarunGupta-7796 answered MeinolfHlscherEIBSysteme-8153 published

Hi @LeilaKong-MSFT ,
I have clipboard & drive sharing ON. Point is it, clipboard sync works for sometime, then it stops working (usually following Disconnect RDP session event). As u said, I have to kill rdpclip.exe and start it again from Run command to get clipboard sync working.

Can some one answer these questions -

  1. Is there any explanation or document which states why this issue occurs? Why rdpclip.exe stops syncing?

  2. Is there any workaround, except rdpclip.exe restart? Or permanent fix?


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Helo anonymous user-7796 ,

Thanks for your response.

Two scenarios are possible: copying files/data using RDP is not allowed on a remote server or rdpclip.exe process has crashed in the current user session. If the clipboard in RDP session has stopped working unexpectedly, and Paste option in the context menu has become inactive, it is easier to end the current RDP session correctly (logoff) and re-connect. You can enable or disable the use of the RDP clipboard on the Windows host for copy and paste operations by using Group Policy or Registry settings.
Can’t Copy and Paste via Remote Desktop (RDP) Clipboard: http://woshub.com/cant-copy-paste-via-remote-desktop-rdp-clipboard/

0 Votes 0 ·

Both scenarios you suggest are incorrect.
If It wasn't allowing on the server, it wouldn't work intermittently.
And if rdpclip.exe crashed it wouldn't be running.

In fact, the only resort is to KILL rdpclip.exe, and manually restart it. Voila, I can paste the text already in the clipboard on the client, without copying it again. BUT WHY DO I HAVE TO GO THROUGH IT EVERY 5 MINUTES?! This is longstanding bug, that seemingly is ignored by Microsoft.

0 Votes 0 ·

Hello Alexander,

I just experienced the same issue with a customer, found this which might help

basically explicitly allow clipboard redrection via gpo- it not being configured at all might be the problem though it shouldnt

https://nishantrana.me/2019/02/09/fixed-copy-paste-not-working-in-remote-desktop-connection-windows-10/

Edit: oops, seems like for them it didnt work at all, not stopped working- shoot, if you found a solution care to tell me?

1 Vote 1 ·