Applica l'ordine di valutazione a più livelli per i criteri Consenti e Impedisci installazione dispositivo in tutti i criteri di corrispondenza dei dispositivi: valore del Registro di sistema AllowDenyLayeredComputerHKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions
- ID criterio
- DeviceInstall_Allow_Deny_Layered
- Ambito
- Configurazione computer
- Supportato in
- Almeno Windows Server 2016 o Windows 10 versione 2106
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Sistema › Installazione dispositivi › Restrizioni per l'installazione di dispositivi
Registro
AllowDenyLayered
REG_DWORDComputer- Valore abilitato
- 1
- Valore disabilitato
- 0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions] ; Opzioni (usarne solo una) ; Abilitato "AllowDenyLayered"=dword:00000001 ; Disabilitato "AllowDenyLayered"=dword:00000000
CMD
:: Opzioni (usarne solo una) :: Abilitato reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "AllowDenyLayered" /t REG_DWORD /d 1 /f :: Disabilitato reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "AllowDenyLayered" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Force | Out-Null # Opzioni (usarne solo una) # Abilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'AllowDenyLayered' -PropertyType DWord -Value 1 -Force | Out-Null # Disabilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'AllowDenyLayered' -PropertyType DWord -Value 0 -Force | Out-Null