Show me the money
Learn how to copy files between Windows servers with no hassle using a simple trick.
Today I will bring a short but handy post that many people may find useful.
Sysadmin that have to deal with a somewhat big environments, must know all the neats and tricks to make their lives better. Transferring files in such environments is one of those.
The easiest
Whenever you connect to a Windows server with RDP (Remote Desktop Protocol), you can safely transfer files between the client (source) machine and server (destination). The file transfer is encrypted the same way that the RDP session itself, through TCP Port 3389.
But this method will only allow you to copy a 2GB file. Ups.
Funny thing, last time I tried this, my RDP client did not warn me about the size limitation. It will leave you suffer, while the agonising bitrate vanishes slowly, until the transfer is no more.
The most complete
There are several alternatives that I can think of right now:
xcopy
files.- Drive Redirection through RDP.
- Share and mount any destination machine’s folder.
But all of those require additional steps (ad-hoc permissions), have complex syntax (never been able to recall whether xcopy
paths’ order is src dst
or dst src
) or may leave rubbish behind.
And here comes the magic.
Show me the money
Or at least, use the $
.
Follow with me:
- Open a File Explorer window.
- Go to the navigation bar.
- Type the following, replacing
{destination-ip}
with destination server IP and{destination-drive}
with the Drive letter you want to access to:
1
\\{destination-ip}\{destination-drive}$\some\path
- Enter some local or domain credentials.
- Voilà.
Example
To accessC:\
drive on a destination server with IP192.168.1.23
, you would do:
\\192.168.1.23\c$\my\cool\destination
You are accessing a remote drive path with no need of previous mount. And the best part, once you close the File Explorer Window, it will be gone.
For this to work, you will need TCP Port 445, as this is a network copy through SMB. But other than that, it’s done.
Hope it helps.