If you’re familiar with Group Policy, there’s been an administrative template available since the Windows 2000 days to restrict access to the drives in File Explorer. The only problem with that template is that it only gives you the options to remove access to either all the drives or drives A, B, C, and D which is isn’t very flexible.
In search of a more granular option, I found this very helpful post here that explains exactly how to restrict access to specific drives using registry keys. Here I’m just going to copy the table and show you how to add a Group Policy Registry Preference to achieve the same thing.
Simply add the decimal values together for whatever drive letters you want to enable access to and then enter the product into the Value data section in the instructions below.
|Drive Letter||Decimal Value||Drive Letter||Decimal Value|
Inside of Group Policy Editor for your RDS Server’s User Policy, navigate here and do the following:
User Configuration > Preferences > Windows Settings > Registry Right-click Registry > New > Registry-Item Action: Update Hive: HKEY_CURRENT_USER Key Path: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer Value name: NoViewOnDrive Value type: REG_DWORD Value data: EnterYourValueFromAbove Base: Decimal