Problem:

Windows Virtual Desktop is deployed in your Azure subscription. You tried updating the RDP Properties in the Portal to disallow “Drive/storage redirection” but the session hosts are still displaying redirected disks.

Solution:

The Portal has a bug so when the “Drive/storage redirection” setting is modified, it’s not actually implemented on the host pool. However, if you apply the setting using PowerShell, the setting modification is implemented correctly.

Here is a script I used to fix my host pool:

$ResourceGroupName = ""
$Name = ""

$CurrentProperties = (Get-AzWvdHostPool -ResourceGroupName $ResourceGroupName -Name $Name ).CustomRdpProperty

$NewProperties = $CurrentProperties + "drivestoredirect:s:;"

Update-AzWvdHostPool -ResourceGroupName $ResourceGroupName -Name $Name -CustomRdpProperty $NewProperties

Explanation:

In the code above, first we set the variables to the correct values. The “ResourceGroupName” variable needs the name of your resource group that contains your host pool. The “Name” variable needs the name of your host pool. Once that is set, you can run the script.

In the lines below the variables, the first line retrieves the current RDP properties for the host pool, the second line appends the setting to disallow ” Drive/storage redirection” to a string of RDP Properties currently used on your host pool, and the last line updates the RDP properties for the host pool. Additional information regarding the “Drive/storage redirection” setting can be found on the MS Docs webpage under the “drivestoredirect:s:value” record in the table. More information regarding this issue can be found on GitHub.