How to prevent mapped drives on local laptop from showing up in WVD Desktops

%3CLINGO-SUB%20id%3D%22lingo-sub-1344597%22%20slang%3D%22en-US%22%3EHow%20to%20prevent%20mapped%20drives%20on%20local%20laptop%20from%20showing%20up%20in%20WVD%20Desktops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1344597%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20share%20a%20WVD%20Desktop%2C%20if%20my%20local%20laptop%20has%20a%20mapped%20network%20drive%20(for%20example%2C%20my%20home%20directory%20on%20the%20H%3A%20drive)%2C%20it%20shows%20up%20in%20File%20Explorer%20on%20the%20WVD%20Desktop%20as%20%22H%20on%20MyLaptopHostName%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20want%20it%20to%20do%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20I%20can%20prevent%20that%20from%20being%20done%20without%20having%20to%20make%20changes%20to%20my%20local%20laptop%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20thought%20I%20had%20hit%20paydirt%20with%20the%20RDP%20custom%20property%20%22drivestoredirect%22.%26nbsp%3B%20But%20that%20only%20prevents%20my%20laptop's%20hard%20disks%20from%20being%20shared.%26nbsp%3B%20It%20does%20nothing%20to%20prevent%20mapped%20network%20drives%20on%20my%20laptop%20from%20showing%20up%20on%20the%20remote%20desktop.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20know%20of%20a%20way%20to%20prevent%20local%20mapped%20drives%20from%20showing%20up%20in%20File%20Explorer%20on%20a%20WVD%20Desktop%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

When I share a WVD Desktop, if my local laptop has a mapped network drive (for example, my home directory on the H: drive), it shows up in File Explorer on the WVD Desktop as "H on MyLaptopHostName".

 

I don't want it to do that.

 

Is there a way I can prevent that from being done without having to make changes to my local laptop?

 

I thought I had hit paydirt with the RDP custom property "drivestoredirect".  But that only prevents my laptop's hard disks from being shared.  It does nothing to prevent mapped network drives on my laptop from showing up on the remote desktop.

 

Anyone know of a way to prevent local mapped drives from showing up in File Explorer on a WVD Desktop? 

2 Replies

@FortyMegabytes how did you configure the drivestoredirect property? You should be able to specify only the c: drive for example. Is that not working?

@David BelangerThe exact command I run is:

Set-RdsHostPool -Tenant $tn -Name $hpn -CustomRdpProperty 'drivestoredirect:s:J:K:C:'


It works for the C: drive, but *not* for the mapped network drives J: and K: drives.  I after looking at the online documentation for the 'drivestoreditect' property, it is only meant to be used for local hard disks, *not* locally-mapped network drives.

 

So I'm trying to figure out how to prevent locally-mapped network drives from showing up on the WVD desktop.