Necesito permitir solo medios USB específicos en mi Windows 10 Host (21h1).
La configuración de gpo:
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions"
"DenyUnspecified" "DWORD:1" GPO_LocalMachineRegistryKeySet
"Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" "DenyRemovableMedia
"DWORD:1"
En el primer paso, el dispositivo USB no es visible. Agrego el dispositivo en la lista blanca
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs"
"*" ` "BORRAR TODOS LOS VALORES"
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs"
"1" ` "SZ:USBSTOR\GenDisk"
GPO_LocalMachineRegistryKeySet "Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs"
"2" ` "SZ: ALMACENAMIENTO\VOLUMEN"
gpupdate.exe /fuerza
Luego conecto mi llave USB. La llave USB está visible y montada. Pero si elimino las entradas de la llave USB de la lista blanca y desconecto/conecto la llave USB nuevamente, la llave aún está visible.
Gracias