Skip to content

Instantly share code, notes, and snippets.

@markalanevans
Created March 31, 2025 15:39
Show Gist options
  • Save markalanevans/36b90074cd2289dbe62014d32c2a44ea to your computer and use it in GitHub Desktop.
Save markalanevans/36b90074cd2289dbe62014d32c2a44ea to your computer and use it in GitHub Desktop.
Remote Desktop Clipboard Fix
Remote Desktop - Dev Setup
The Clipboard often gets out of sync.
So on windows create a .bat file with this in it
```RestartRDPClip.bat
cls
taskkill /F /FI "USERNAME eq %username%" /IM rdpclip.exe
ping -n 1 -w 1000 1.1.1.1>nul
start rdpclip.exe
```
Then create a windows shortcut
That has this for the target
```
C:\Windows\explorer.exe "C:\Users\MarkAEvans\Documents\Marks DevSetup\RestartRDPClip.bat"
```
cls
taskkill /F /FI "USERNAME eq %username%" /IM rdpclip.exe
ping -n 1 -w 1000 1.1.1.1>nul
start rdpclip.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment