Search code examples
powershellremote-desktopfile-copying

copy file to remote desktop drive


I want to copy a file from my local C:\filename.png to the remote computer to which I am connected via remote desktop's C:\ drive.

Is it possible to copy using powershell or anyother terminal command?

I am using windows 7 (local PC) --- Remote Desktop (Windows Server 2003)


Solution

  • If your host's c: drive is injected into a terminal services session, it just gets a new drive letter in the remote session.

    On my network, my host machine's drives are injected into a VM and C: becomes M:.

    So in that case, in the remote session:

    copy c:\file.png m:\png

    BUt perhaps a beter way - from your host:

    Copy \\remote\c$\file.png c:\file.png