Access local drives in an RDP session
I see many admins and developers struggling with the RDP environment trying to copy files to a location where they have access to the files in the RDP session and their host workstation. ย Many even create shares and exceptions in the Windows firewall rules to allow for file and print sharing to do this, which can compromise security among other things on servers especially in the DMZ.
Many who may not be as system admin savvy may not be aware of the feature of RDP that allows one to access local drives in an RDP session. ย This is an extremely useful feature considering it is builtin out of the box behavior with RDP and it requires no configuration of shares and firewall exceptions just to get your files back and forth.
Setting up access to local drives
- Open Remote Desktop Connection – typeย mstsc in run or search menu, clickย Show Options
- Click theย Local Resourcesย tab and then click theย More buttonย at the bottom
- Notice you can expandย Drives and then click which drives you want to have access to in the RDP session. ย Notice I have the “My Passport” External drive showing which is a USB connected hard drive.
Now after this is setup and you connect to your remote server or workstation resource, you will see the drive listed as if it is simply a local drive to the remote Windows box. ย This works really well and I have not noticed a huge performance hit mounting drives this way. ย It seems to suite the purpose of needing to have access to local files and being able to securely copy resources back and forth without any major changes to any security models or firewall rules in place. ย Sometimes as network and system admins we have to rethink how we do things especially without having to utilize the network. ย The local drives resource in RDP is certainly a much easier and way less involved means to copy files back and forth as opposed to over the network.