Disabling Local Drive redirection in WVD

%3CLINGO-SUB%20id%3D%22lingo-sub-1137128%22%20slang%3D%22en-US%22%3EDisabling%20Local%20Drive%20redirection%20in%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1137128%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20far%20as%20I%20can%20tell%20to%20disable%20local%20drive%20redirection%20in%20the%20WVD%20client%20you%20need%20to%20run%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3ESet-RdsHostPool%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-TenantName%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-string%22%3E%22TenantName%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-Name%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-string%22%3E%22HostGroupName%22%20-CustomRdpProperty%20%22%3CSPAN%3Edrivestoredirect%3As%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3E%3CSPAN%3EHere's%20the%20output%20of%20Get-RdsHostPool%20after%20running%20this%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3E%3CSPAN%3ETenantName%20%3A%20%3CTENANTNAME%3E%3CBR%20%2F%3ETenantGroupName%20%3A%20Default%20Tenant%20Group%3CBR%20%2F%3EHostPoolName%20%3A%20%3CHOSTPOOL%3E%3CBR%20%2F%3EFriendlyName%20%3A%20%3CHOSTPOOL%3E%3CBR%20%2F%3EDescription%20%3A%20Created%20through%20ARM%20template%3CBR%20%2F%3EPersistent%20%3A%20False%3CBR%20%2F%3ECustomRdpProperty%20%3A%20drivestoreredirect%3As%3A%3B%3CBR%20%2F%3EMaxSessionLimit%20%3A%20999999%3CBR%20%2F%3ELoadBalancerType%20%3A%20BreadthFirst%3CBR%20%2F%3EValidationEnv%20%3A%20False%3CBR%20%2F%3ERing%20%3A%3CBR%20%2F%3EAssignmentType%20%3A%3CBR%20%2F%3E%3C%2FHOSTPOOL%3E%3C%2FHOSTPOOL%3E%3C%2FTENANTNAME%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3EBut%20on%20logging%20into%20the%20desktop%2C%20in%20my%20case%20a%20Windows%2010%20multi-session%20image%20the%20local%20drives%20are%20still%20displayed.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-string%22%3EIs%20what%20I've%20done%20above%20correct%2C%20or%20is%20there%20a%20better%20way%20to%20accomplish%20this%20via%20GPO%20etc%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1218125%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20Local%20Drive%20redirection%20in%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1218125%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F447373%22%20target%3D%22_blank%22%3E%40cwljack%3C%2FA%3E%26nbsp%3BDid%20you%20ever%20resolve%20this%20issue%3F%26nbsp%3B%20We%20are%20experiencing%20same.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1218159%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20Local%20Drive%20redirection%20in%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1218159%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F577682%22%20target%3D%22_blank%22%3E%40_new_man_%3C%2FA%3E%26nbsp%3BYes%20but%20didn't%20use%20the%20WVD%20PowerShell%20command%20in%20the%20end%2C%20as%20it%20didn't%20work%20for%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHad%20to%20add%20it%20via%20a%20group%20policy%2C%20here%20%22%3CSTRONG%3E%3CSPAN%20class%3D%22ph%20uicontrol%22%3EComputer%20Configuration%5CPolicies%5CAdministrative%20Templates%5CWindows%20Components%5CRemote%20Desktop%20Services%5CRemote%20Desktop%20Session%20Host%5CDevice%20and%20Resource%20Redirection%22%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FSTRONG%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20enabling%20the%20%3CSTRONG%3EDo%20not%20allow%20drive%20redirection%3C%2FSTRONG%3E%20group%20policy%20setting%2C%20and%20linking%20that%20to%20the%20OU%20with%20the%20WVD%20Session%20host%20computer%20accounts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1218260%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20Local%20Drive%20redirection%20in%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1218260%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20very%20much%20for%20replying!%26nbsp%3B%20Yes%2C%20that%20does%20help%20me.%26nbsp%3B%20We%20were%20able%20to%20disable%20using%20your%20resolution%20below.%26nbsp%3B%20I%20was%20trying%20to%20avoid%20GPO%20and%20just%20do%20a%20quick%20command%20in%20WVD%20but%20that%20wasn't%20working.%26nbsp%3B%20Thanks%20again.%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F447373%22%20target%3D%22_blank%22%3E%40cwljack%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1295593%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20Local%20Drive%20redirection%20in%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1295593%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F577682%22%20target%3D%22_blank%22%3E%40_new_man_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20got%20this%20working%20with%20the%20following%2C%20I%20think%20you%20just%20missed%20a%20colon%20from%20your%20customrdpproperty%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%24property%20%3D%26nbsp%3B%20%22drivestoredirect%3As%3A%3B%22%3C%2FP%3E%3CP%3ESet-RdsHostPool%20-TenantName%20%22tenant%22%20-HostPoolName%20FullDesktop%20-CustomRdpProperty%20%24property%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1999841%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20Local%20Drive%20redirection%20in%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1999841%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F447373%22%20target%3D%22_blank%22%3E%40cwljack%3C%2FA%3E%26nbsp%3B%20do%20you%20have%20any%20idea%20why%20the%20RDP%20settings%20in%20the%20Azure%20Portal%20for%20that%20WVD%20Host%20Pool%20are%20being%20ignored%3F%20Have%20you%20ever%20found%20the%20root%20cause%3F%20May%20it%20be%20related%20to%20that%20the%20WVD%20Host%20VM%20has%20been%20moved%20out%20of%20the%20%22AADDC%20Computers%22%20OU%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2067812%22%20slang%3D%22en-US%22%3ERe%3A%20Disabling%20Local%20Drive%20redirection%20in%20WVD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2067812%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F447373%22%20target%3D%22_blank%22%3E%40cwljack%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EI%20recognize%20this%20is%20a%20year%20old%20post%20and%20we're%20talking%20about%20a%20very%20different%20WVD%20now.%20but...%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFWIW%2C%20I%20think%20using%20a%20GPO%20to%20override%2C%20or%20%22fix%22%2C%20a%20setting%20that%20should%20work%20should%20be%20an%20unnecessary%20patch.%26nbsp%3B%20i.e.%20why%20would%20they%20present%20the%20toggle%20if%20it%20doesn't%20do%20anything%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20case%2C%20I%20found%20two%20things.%26nbsp%3B%20First%20was%20I%20couldn't%20see%20the%20settings%20change%20in%20the%20properties.%26nbsp%3B%20I%20had%20it%20set%20to%20disable%20drive%20mapping%2C%20but%20the%20'advanced'%20properties%20page%20didn't%20show%20it.%26nbsp%3B%20So%20I%20disabled%20it%2C%20saved%2C%20enabled%20it%2C%20saved%20and%20it%20appeared.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20it%20still%20didn't%20work%2C%20and%20I%20ended%20up%20seeing%20display%20settings%20also%20not%20work.%26nbsp%3B%20By%20not%20work%20I%20mean%20I%20didn't%20see%20a%20difference%20when%20I%20opened%20the%20RDP%20session.%26nbsp%3B%20This%20got%20me%20thinking%20that%20it%20was%20kind%20of%20like%20the%20local%20mstsc%20properties%20were%20in%20control.%26nbsp%3B%20That%20mstsc%20configuration%20is%20delivered%20by%20the%20feed%20in%20the%20RDP%20Client%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERefreshing%20the%20feed%20in%20the%20remote%20desktop%20app%20got%20me%20my%20new%20settings%2C%20and%20the%20properties%20I'd%20configured%20are%20now%20in%20effect.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20of%20got%20to%20that%20embarrassing%20point%20of%20'duh'%2C%20but%20if%20you're%20forehead%20is%20as%20bruised%20as%20mine%20was%2C%20hopefully%20this%20little%20insight%20might%20help%20someone.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

As far as I can tell to disable local drive redirection in the WVD client you need to run:

 

Set-RdsHostPool -TenantName "TenantName" -Name "HostGroupName" -CustomRdpProperty "drivestoredirect:s"

 

Here's the output of Get-RdsHostPool after running this:

 

TenantName : <TenantName>
TenantGroupName : Default Tenant Group
HostPoolName : <HostPool>
FriendlyName : <HostPool>
Description : Created through ARM template
Persistent : False
CustomRdpProperty : drivestoreredirect:s:;
MaxSessionLimit : 999999
LoadBalancerType : BreadthFirst
ValidationEnv : False
Ring :
AssignmentType :

 

But on logging into the desktop, in my case a Windows 10 multi-session image the local drives are still displayed.

 

Is what I've done above correct, or is there a better way to accomplish this via GPO etc?

 

6 Replies

@cwljack Did you ever resolve this issue?  We are experiencing same.

@_new_man_ Yes but didn't use the WVD PowerShell command in the end, as it didn't work for me.

 

Had to add it via a group policy, here "Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection". 

 

Then enabling the Do not allow drive redirection group policy setting, and linking that to the OU with the WVD Session host computer accounts.

 

Hope this helps!

Thank you very much for replying!  Yes, that does help me.  We were able to disable using your resolution below.  I was trying to avoid GPO and just do a quick command in WVD but that wasn't working.  Thanks again.  @cwljack 

@_new_man_ 

 

I got this working with the following, I think you just missed a colon from your customrdpproperty:

 

$property =  "drivestoredirect:s:;"

Set-RdsHostPool -TenantName "tenant" -HostPoolName FullDesktop -CustomRdpProperty $property

@cwljack  do you have any idea why the RDP settings in the Azure Portal for that WVD Host Pool are being ignored? Have you ever found the root cause? May it be related to that the WVD Host VM has been moved out of the "AADDC Computers" OU?

@cwljack 
I recognize this is a year old post and we're talking about a very different WVD now. but...


FWIW, I think using a GPO to override, or "fix", a setting that should work should be an unnecessary patch.  i.e. why would they present the toggle if it doesn't do anything?

 

In my case, I found two things.  First was I couldn't see the settings change in the properties.  I had it set to disable drive mapping, but the 'advanced' properties page didn't show it.  So I disabled it, saved, enabled it, saved and it appeared.

 

However, it still didn't work, and I ended up seeing display settings also not work.  By not work I mean I didn't see a difference when I opened the RDP session.  This got me thinking that it was kind of like the local mstsc properties were in control.  That mstsc configuration is delivered by the feed in the RDP Client app.

 

Refreshing the feed in the remote desktop app got me my new settings, and the properties I'd configured are now in effect.

 

Kind of got to that embarrassing point of 'duh', but if you're forehead is as bruised as mine was, hopefully this little insight might help someone.