Impedisci l'installazione dei dispositivi che corrispondono a uno di questi ID istanza del dispositivo: valore del Registro di sistema DeviceInstall_Instance_IDs_Deny (DenyInstanceIDs)ComputerHKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyInstanceIDs

ID criterio
DeviceInstall_Instance_IDs_Deny
Ambito
Configurazione computer
Supportato in
Almeno Windows Server 2016 o Windows 10 versione 1909
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Sistema › Installazione dispositivi › Restrizioni per l'installazione di dispositivi

Registro

DenyInstanceIDs

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
"DenyInstanceIDs"=dword:00000001
; Disabilitato
"DenyInstanceIDs"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyInstanceIDs" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyInstanceIDs" /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 'DenyInstanceIDs' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyInstanceIDs' -PropertyType DWord -Value 0 -Force | Out-Null

(valori dell'elenco)

REG_SZComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Impedisci l'installazione dei dispositivi che corrispondono a uno di questi ID istanza del dispositivo:
Tipo di valore
REG_SZ
Prefisso del nome del valore
-
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyInstanceIDs]

; Aggiungi un valore per ogni voce dell'elenco, aumentando il numero
"1"="<inserisci valore>"
"2"="<inserisci valore>"
CMD
:: Aggiungi un valore per ogni voce dell'elenco, aumentando il numero

reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyInstanceIDs" /v "1" /t REG_SZ /d "<inserisci valore>" /f
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyInstanceIDs" /v "2" /t REG_SZ /d "<inserisci valore>" /f
PowerShell
# Aggiungi un valore per ogni voce dell'elenco, aumentando il numero

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyInstanceIDs' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyInstanceIDs' -Name '1' -PropertyType String -Value '<inserisci valore>' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyInstanceIDs' -Name '2' -PropertyType String -Value '<inserisci valore>' -Force | Out-Null

DenyInstanceIDsRetroactive

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
Si applica anche ai dispositivi corrispondenti già installati.
Tipo di valore
REG_DWORD
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)
; Selezionato
"DenyInstanceIDsRetroactive"=dword:00000001
; Non selezionato
"DenyInstanceIDsRetroactive"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyInstanceIDsRetroactive" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyInstanceIDsRetroactive" /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)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyInstanceIDsRetroactive' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyInstanceIDsRetroactive' -PropertyType DWord -Value 0 -Force | Out-Null