Preciso permitir apenas mídia USB específica no meu host do Windows 10 (21h1).
A configuração do gpo:
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions"
"DenyUnspecified" "DWORD:1" GPO_LocalMachineRegistryKeySet
"Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" "DenyRemovableMedia
"DWORD:1"
Na primeira etapa, o dispositivo USB não está visível. Eu adiciono o dispositivo na lista de permissões
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs"
"*" ` "DELETEALLVALUES"
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs"
"1" ` "SZ:USBSTOR\GenDisk"
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs"
"2" ` "SZ:STORAGE\VOLUME"
gpupdate.exe /força
Então eu conecto minha chave USB. A chave USB está visível e montada. Mas se eu remover as entradas da chave USB da lista branca e desconectar/conectar a chave USB novamente, a chave ainda estará visível
Obrigado