Disable Drive Mapping in Microsoft Virtual Desktop

In this blog post, I will show you how to disable drive mapping in Microsoft Virtual Desktop service.

Install MVD PowerShell module

To install the MVD PowerShell module on a Windows 10 or Windows Server machine, open the PowerShell console and run the following cmdlet.
Install-Module -Name Microsoft.RDInfra.RDPowerShell

Connect to MVD using PowerShell

The following cmdlet will connect you toAzure MVD and ask you to authenticate.
Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
The command below will disable drive mapping. Note: Change TENANTNAME and Pool name with your details.
Set-RdsHostPool -TenantName TENANTNAME -HostPoolName POOL_NAME -CustomRdpProperty drivestoredirect:s: