Map a network drive from remote desktop back to local computer
If you are working a lot with remote desktop sessions especially in lab environments where network segmentation is present, there are often many situations where it is beneficial to have access to local or network drives from your host computer you are connecting from by means of a network drive on the remote desktop session. ย Let’ stake a look at how toย map a network drive from remote desktop back to local computer session.
As you know you can redirect and extend locally attached or mapped network drives from your host computer to the RDP computer you are remotely logging into. ย The way that is accomplished is theย local resourcesย tab.
Map a network drive from remote desktop back to local computer
You are already most likely familiar with the process to “redirect” drives from your host computer over to your remote desktop session. ย This is as simple as choosing yourย local resources in the settings of your RDP connect window. ย Notice below theย More button at the bottom which takes you to theย local devices and resources section which allows resources to be chosen.
On your target remote desktop connection, you will see these redirected drives underneath yourย Devices and drives area of Explorer. ย They will be designated byย <drive letter> onย <computername> where computername is your host.
Mapping these to real network drives
You may however have the need to map these redirected drives to real drive letters inside your remote desktop session. ย For instance developers may have the need to have access to source code in a lab environment which they may not have RPC or NETBIOS traffic allowed. ย The traditionalย map network drive wouldn’t work as the ports required aren’t open.
The redirected drives however,ย can be mapped to which is awesome! ย If you run a simpleย net use command inside of your RDP session, you will see the redirected drives appear. ย Notice the format of the drive is in the form of aย special UNC path represented byย \TSCLIENT<drive letter> so these are mappable.
Notice that all we have to do to map these in a true sense to a network drive letter is a simpleย net use <drive letter> \tsclient<drive letter> and voila, the drive is mapped!
Now if you look in Windows explorer, you will see a true network drive mapped under yourย Network Locationsย section.
If you are in need of being able toย map a network drive from remote desktop back to local computer for development or possibly application specific reasons, this process is definitely a life saver.