Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / Can’t Copy and Paste via Remote Desktop (RDP) Clipboard

March 31, 2021 Windows 10Windows Server 2016

Can’t Copy and Paste via Remote Desktop (RDP) Clipboard

If you are actively using remote connections to your workstations, Windows servers or RDS farms using the RDP protocol, it is likely you have come across a problem when the clipboard is not working in a Remote Desktop session. So you cannot transfer (copy/paste) a text or files between your computer and a remote host. The problem occurs both in Windows Server and in desktop Windows versions.

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.

Contents:
  • RDP Clipboard (Rdpclip.exe) Stops Working in Remote Desktop Session
  • How to Allow/Prevent Copy and Paste via RDP Clipboard on Windows?

RDP Clipboard (Rdpclip.exe) Stops Working in Remote Desktop 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. This will fix the Remote Desktop clipboard issue for sure. However, it is not always convenient, because you have to re-open all apps in your RDP session again. Fortunately, there is a way to restore correct clipboard operation in a RDP session without logging off.

Rdpclip.exe is responsible for clipboard operation between your local computer and the Remote Desktop host. A separate rdpclip.exe process is started for each remote user session when they connect to the Remote Desktop. Using the Task Manager, you can kill the rdpclip.exe (RDP Clipboard Monitor) process and run it manually (Task Manager -> File -> Start new task -> rdpclip -> Enter).

rdp clipboard monitor - end task using task manager

Usually it helps to restore the remote clipboard operation quickly. Make sure if copy/paste (Ctrl+C / Ctrl+V) is working in the RDP session.

re-run the rdpclip.exe process on windows

Users can restart the rdpclip.exe process if it has hung up using a simple PowerShell script. It is enough to place the PS1 file on the Public profile Desktop folder or copy it to user desktops using GPO.

(Get-WmiObject -Query "select * from Win32_Process where name='RDPClip.exe'"|?{$_.GetOwner().User -eq $ENV:USERNAME}).Terminate()
rdpclip.exe

To make it more convenient to use, you can sign the PowerShell script or configure a PowerShell Execution Policy.

Remember that in order to copy data via the RDP clipboard, the following conditions must be met:

  1. The remote clipboard must be enabled in the settings of the RDP client you are using to connect to a remote computer. Check Clipboard in the Choose the devices and resources that you want to use in your remote session section in the Local Resources tab of the built-in mstsc.exe client;
    mstsc.exe allow clipboard usage in order to copy and paste in the remote desktop session
    If you are using an alternative RDP client, like the Remote Desktop Connection Manager (RDCMan) or mRemoteNG, note that the remote clipboard option may be called differently.
  2. Copying and pasting data using the clipboard must also be allowed on the RDP/RDS host (see below for how to do this).

How to Allow/Prevent Copy and Paste via RDP Clipboard on Windows?

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.

    1. Run the Local Group Policy Editor: gpedit.msc
    2. Go to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Device and Resource Redirection;
    3. To prevent copying data to/from a remote server using the clipboard of a RDP session, set Enabled for the following policies:
      Do not allow Clipboard redirection (Clipboard redirection is used to copy text or files using the clipboard in RDP)
      Do not allow drive redirection (Drive mapping/redirection allows a user to get access to their local drives in a RDP session. It is also used when copying files)
      group policy: Do not allow Clipboard redirection
      There are the same policy settings in the user GPO section. It means that you can disable using the clipboard and connected drives for the specific RDP users. On a standalone (workgroup) computer, you may use MLGPO in order to disable the RDP clipboard for non-admin users.
    4. If you want to force using the RDP clipboard, change the values of the settings to Disabled (by default, using RDPClip to copy data between a local computer and a remote RDP host is allowed)
    5. Update the Group Policy settings using gpupdate /force. In order new settings to be applied to users, they must end their RDP sessions (using logoff instead of disconnect) or wait for automatic disconnection of user sessions according to RDS timeouts.
You can disable the RDP clipboard for all host users through the registry. The following REG_DWORD parameters in HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server match the policy settings described above:

  • DisableClipboardRedirection = 1
  • DisableDriveRedirection = 1

You can disable 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 you are using RDS hosts running on Windows Server, you can disable the clipboard and the local drives redirection in the collection settings: Remote Desktop Services -> Collections -> Tasks -> Edit Properties -> Client Settings. Uncheck Clipboard and Drives options in the Enable redirecting for the following section.

windows server rds -disable clipboard redirection in collection settings

If you want to deny copying to/from a RDP session for users only, but not the administrators, you 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 (you will have to change the file owner from TrustedInstaller to another one first).

prevent using of rdpclip by non-admin users

4 comments
6
Facebook Twitter Google + Pinterest
previous post
UAC: This App Has Been Blocked for Your Protection on Windows 10
next post
Running Multiple IIS Websites on the Same Port or IP Address

Related Reading

Using Previous Command History in PowerShell Console

January 31, 2023

How to Install the PowerShell Active Directory Module...

January 31, 2023

Enable Internet Explorer (IE) Compatibility Mode in Microsoft...

January 27, 2023

How to Disable or Uninstall Internet Explorer (IE)...

January 26, 2023

How to Delete Old User Profiles in Windows?

January 25, 2023

4 comments

BAKEMONO April 8, 2021 - 3:51 pm

Hello,
just a question (you never know), is it possible to copy text from a web page (.php) in a browser (edge, ff) then, in a “RDP” remote desktop session (and RDP in citrix too) to paste the text into PowerShell, without DOM or invisible characters?
Cordially.

Reply
paola January 19, 2022 - 3:43 am

hola, no me aparece en el administrador ese proceso?? que puedo hacer?

Reply
paola January 20, 2022 - 2:06 pm

hola, pero es rdpclip no esta en ejecución, y¿y no permite copiar, pero he verificado en otro servidor que si deja copiar y pegar, y tampoco tiene ese servicio pero si deja copiar y pegar

Reply
Kimi February 23, 2022 - 9:25 pm

Using the Task Manager, you can kill the rdpclip.exe (RDP Clipboard Monitor) process and run it manually (Task Manager -> File -> Start new task -> rdpclip -> Enter).

It’s working, thanks.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Using Previous Command History in PowerShell Console

    January 31, 2023
  • How to Install the PowerShell Active Directory Module and Manage AD?

    January 31, 2023
  • Finding Duplicate E-mail (SMTP) Addresses in Exchange

    January 27, 2023
  • How to Delete Old User Profiles in Windows?

    January 25, 2023
  • How to Install Free VMware Hypervisor (ESXi)?

    January 24, 2023
  • How to Enable TLS 1.2 on Windows?

    January 18, 2023
  • Allow or Prevent Non-Admin Users from Reboot/Shutdown Windows

    January 17, 2023
  • Fix: Can’t Extend Volume in Windows

    January 12, 2023
  • Wi-Fi (Internet) Disconnects After Sleep or Hibernation on Windows 10/11

    January 11, 2023
  • Adding Trusted Root Certificates on Linux

    January 9, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How to Allow Multiple RDP Sessions in Windows 10 and 11?
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11?
  • How to Restore Deleted EFI System Partition in Windows?
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and to Bypass UAC Prompt?
  • How to Create a Wi-Fi Hotspot on your Windows PC?
  • Updating List of Trusted Root Certificates in Windows
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top