Cannot Copy and Paste via RDP? We can help you.
We cannot copy/paste a text or file between our computer and a remote host if we actively use remote connections to workstations, Windows servers, or RDS farms using the RDP protocol.
As part of our Server Management Services, we assist our customers with
Today, let us see how to resolve this error.
Cannot Copy and Paste via RDP
Sometimes the clipboard does not work in a Remote Desktop session if we actively use remote connections to workstations, Windows servers, or RDS farms using the RDP protocol.
We may come across two scenarios:
- It does not allow copying files/data using RDP on a remote server
- rdpclip.exe process crashes in the current user session
RDP Clipboard Stops Working in Remote Desktop Session
If we come across the clipboard issue, the best option is to end the current RDP session correctly (logoff) and reconnect.
However, it is not always convenient since we have to reopen everything again.
Fortunately, there is a way to restore the correct clipboard operation in an RDP session without logging off.
Rdpclip.exe is responsible for clipboard operation between our local computer and the Remote Desktop host.
A separate rdpclip.exe process starts for each remote user session when they connect to the Remote Desktop.
Using the Task Manager, we can kill the rdpclip.exe process and run it manually (Task Manager -> File -> Start new task -> rdpclip -> Enter).
Usually, it helps to restore the remote clipboard operation quickly. Ensure that copy/paste (Ctrl+C/Ctrl+V) is working in the RDP session.
In addition, in order to copy data via the RDP clipboard, the following conditions must be met:
First, we must enable the remote clipboard in the settings of the RDP client we use to connect to a remote computer.
Then we must allow to copy and paste data using the clipboard on the RDP/RDS host.
Allow/Prevent Copy and Paste via RDP Clipboard on Windows
We can enable or disable the use of the RDP clipboard using Group Policy or Registry settings.
-
Windows Server 2016
- Initially, run the Local Group Policy Editor: gpedit.msc
- Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Device and Resource Redirection.
- To prevent copying data to/from a remote server using the clipboard of an RDP session, Enable the following policies:
a) Do not allow Clipboard redirection
b) Do not allow drive redirection - If we want to force using the RDP clipboard, change the values of the settings to Disable
- Then update the Group Policy settings using gpupdate /force.
- In order to apply new settings to users, we must end the RDP sessions (logoff instead of disconnect) or wait for automatic disconnection of user sessions according to RDS timeouts.
-
Windows Server 2012
- Initially, open “Server Manager“.
- Select Remote Desktop Services >> Collections >> Tasks
- Then choose “Edit Properties“.
- Under the “Client Settings” tab, ensure to enable the “Clipboard” and “Drive”
-
Windows Server 2008
- Launch “Remote Desktop Session Host Configuration” from the server.
- Then under “Connections“, right-click the connection and select “Properties“.
- Select the “Client Settings” tab and make sure to uncheck the “Clipboard” box. If we want to allow copy and paste of files, make sure to uncheck the Drive selection.
- Eventually, click OK.
We can disable the RDP clipboard between a computer and a remote host as follows:
reg add “HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server” / v “DisableClipboardRedirection” / t REG_DWORD / d 1 / f reg add “HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server” / v “DisableDriveRedirection” / t REG_DWORD / d 1 / f
If we use RDS hosts running on Windows Server, we can disable the clipboard and the local drives redirection:
- Remote Desktop Services -> Collections -> Tasks -> Edit Properties -> Client Settings.
- Uncheck Clipboard and Drives options in the Enable redirecting for the following section.
If we want to deny copying to/from an RDP session for users only, but not the administrators, we can change the NTFS permissions on the executable C:\windows\system32\rdpclip.exe.
To do it, uncheck Read/Execute permissions for the built-in Users group in the file’s security properties and remove the group from the list.
Client-Side Settings
- Right-click on the RDP icon that we use to connect, then select “Edit“.
- Then select the “Local Resources” tab.
- Check the “Clipboard” option. To allow file copying and pasting, select “More…”
If we just need the ability to copy and paste text and not files, stop here and click “OK“. - Otherwise, select the “Drives” option. Click “OK“, then “OK” again.
[Need help with the procedures? We can help you]
Conclusion
In short, we saw how to Allow/Prevent Copy and Paste via RDP Clipboard on Windows
Came across this due to a copy paste issue within internet browsers. Obviously I am not part of your audience! 🙂 But nice of you to care. <3