Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We use remote desktop a lot (XP to Server 2003), and people are having trouble with the clipboard randomly not working. After ensuring that all drives were selected for the remote connection, and rdpclip was killed/restarted, the clipboard works again.

I'm wondering if there's a way I can automate this process for the users so I don't have to manually kill and restart rdpclip every time it stops working for someone. Could I write a batch file that would kill rdpclip and restart it only for the current user? Is there a better solution?

share|improve this question
thx, works fine! – Ice May 10 '11 at 8:07
up vote 8 down vote accepted
taskkill /f /im rdpclip.exe /fi "username eq %USERNAME%" && rdpclip
share|improve this answer

To restart it in a .bat:

taskkill /f /im rdpclip.exe /fi "username eq %USERNAME%"
start rdpclip.exe
share|improve this answer

I would recommend to make it(batch) wait a second between taskkill and start. Without it i faced a problem several times: system had not yet killed the proccess by the time the start command came in. So the new proccess didn't start, and the old got killed. Result: no rdpclip.exe at all =(

taskkill /F /FI "USERNAME eq %username%" /IM rdpclip.exe
ping -n 1 -w 1000>nul
start rdpclip.exe

Save as .bat.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.