Restrict RDP clipboard and drive redirection on Windows Server
When Windows Server hosts financial software or a business application backend, remote desktop copy and paste and local drive mapping create additional data transfer channels. Restricting those channels requires more than asking users to clear options in their RDP clients. The session host must enforce the policies, and connections that actively request redirection must be used to verify that the requests are denied. This guide uses Windows Server 2022 without changing business file permissions or RDP logon rights.
1. Define the scope and test baseline
Before starting, prepare an administrative account for configuration, a standard test account, and a working RDP client. After paying for a RootAMD dedicated server, check the console for connection credentials. If multiple addresses are listed, use the first IPv4 address. The test account must already have remote logon rights; do not add it to the administrators group for this test.
This change restricts only two capabilities: clipboard transfer between the client and remote session, and the mapping of client drives into the remote session. Do not change printer, audio, or other device policies at the same time, so that failures can be traced to specific settings. Computer policies generally apply to the entire session host, not just the test account. Notify anyone using business sessions before proceeding.
First confirm that the test path works
In an authorized test environment, explicitly enable clipboard redirection and a drive containing no sensitive information in the client. After logging on, record whether you can copy test text in both directions and whether the mapped drive is visible. If either function already fails, first investigate client capabilities, existing policies, and session state. Otherwise, a later failure cannot demonstrate that the new policy is effective.
Blocking RDP redirection does not prevent all data exfiltration. Application uploads, email, network shares, and photographs of the screen are outside the scope of these two policies. File permissions and business access rights still need to be managed separately.
2. Configure both blocking policies on the session host
On the server, run gpedit.msc and navigate to Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Device and Resource Redirection. Names may differ with the system language; use the English policy names to confirm the settings.
Set both of the following policies to Enabled:
Do not allow Clipboard redirection.Do not allow drive redirection.
Here, Enabled activates the blocking rule; it does not allow transfers. Before applying the change, record the original settings, policy source, and scope of the change. On a domain member server, implement the change through the domain policy responsible for that computer. Do not repeatedly edit local policy in an attempt to counteract domain policy.
Verify the policy source
Open PowerShell as an administrator, refresh computer policy, and export the results:
gpupdate /target:computer /force
gpresult /scope computer /h "$env:TEMP\rdp-policy.html" /f
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Get-ItemProperty -Path $path -ErrorAction SilentlyContinue |
Select-Object fDisableClip, fDisableCdm
The values corresponding to these two traditional blocking policies should both be 1. Reading the registry provides a cross-check, not an alternative configuration method. A missing value does not, by itself, mean that redirection is ultimately allowed. Open the generated report to confirm that the policies have actually applied and identify the source of the winning policy object.
The report may contain account and domain information, so restrict access when archiving it. If the refresh command requests further action, follow its instructions. A completed command is not a substitute for checking the results.
3. Test denial in both directions in a fresh session
After refreshing policy, save any business work, then have the test account sign out. Simply closing the remote desktop window or disconnecting may leave the old session running and does not qualify as validation in a fresh session. An administrator can use quser to check whether the test account still has a session. Do not forcibly sign out other users to complete the test.
Leave the client's redirection options enabled and log on again. This tests whether the server denies a client request, rather than a situation in which neither side requests the capability.
Test clipboard redirection
Create a new, empty text file on both the client and the remote session. On the client, copy the unique marker LOCAL-RDP-CHECK and try pasting it into the remote file. Then copy REMOTE-RDP-CHECK in the remote session and try pasting it back into the client. Neither attempt should paste the marker just copied on the other side.
Pasting old content does not prove that cross-session transfer succeeded; check for the exact marker. Also test copying and pasting within the client and within the remote session to confirm that editing works locally in each environment. Use only nonsensitive test text. Do not copy passwords or real business data.
Test client drive redirection
In the remote session's File Explorer, check whether client drives appear and try accessing the previously recorded mapped path:
\\tsclient\
The acceptance criterion is that client drives and their test files cannot be accessed through RDP. A lingering drive entry is not the sole basis for judgment; whether the data can actually be read matters more. Clipboard file transfer and drive redirection can be interdependent, so a failed file paste cannot replace a separate text clipboard test.
4. Troubleshoot correct settings with unexpected results
If copying between the client and remote session still works, check the connection address, test account, whether the session was actually signed out, and the source shown in the policy report, in that order. In a jump-host environment, it is easy to confuse the client-to-jump-host connection with the jump-host-to-business-server connection. Each connection has its own redirection boundary.
If client drives are hidden but business files still open, determine whether those files come from a server-local directory, the application's own upload mechanism, or a network share. A server accessing a shared path is not client drive redirection and does not demonstrate that the blocking policy has failed.
If domain policy overrides the local settings, change the winning policy object and repeat validation. Do not write temporary registry values to bypass the management process. Change only one factor at a time during troubleshooting, and retain policy reports, session state, and operation results. Restarting services while changing multiple policies can destroy the evidence needed to establish cause and effect.
5. Restore the original state and retain validation records
Rollback should restore the policy states recorded before the change, rather than setting everything to Disabled. Not Configured and Disabled have different meanings, and higher-level policies may also exist in a domain environment. After changing the original policy source, refresh computer policy, then sign out and log on again to repeat the same tests.
The validation record should include, at a minimum, the system version, policy source, final state of both policies, test account, whether a fresh session was created, and the actual results of bidirectional text transfer and drive access tests. Retest business operations that should remain permitted, so that a security change is not mistaken for an application fault.
Final acceptance requires all three conditions to be met: effective policies match the design, explicitly requested redirection is denied, and business operations continue under the established access rights. If file exchange becomes necessary later, first define a separate approval and transfer process. Do not simply restore unrestricted redirection across the entire session host.
Frequently asked questions
Can unchecked client options replace server-side policy?
No. Client options only select the redirection requests made by that connection and can be enabled again. Enforce the restriction at the session host and test a fresh session that explicitly requests redirection.
Is disconnecting and reconnecting enough after a policy refresh?
No. Disconnecting may preserve the original session. Save the work, sign out the test account, sign in again, and verify that text copying in both directions and access to client drives are denied.
RootAMD EPYC 7543P Dedicated Server
From $456.3/month