Impedir a instalação de dispositivos que correspondam a qualquer destas identificações de dispositivo:: valor do Registro DenyDeviceIDs e mais 1 (Restrictions)ComputadorHKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions

ID da política
DeviceInstall_IDs_Deny
Escopo
Configuração do Computador
Compatível com
Windows Vista ou posterior
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Sistema › Instalação de dispositivos › Restrições de instalação de dispositivos

Registro

DenyDeviceIDs

REG_DWORDComputador
Valor habilitado
1
Valor desabilitado
0
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Habilitada
"DenyDeviceIDs"=dword:00000001
; Desabilitada
"DenyDeviceIDs"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Habilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDs" /t REG_DWORD /d 1 /f
:: Desabilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDs" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Force | Out-Null

# Opções (use apenas uma)
# Habilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDs' -PropertyType DWord -Value 1 -Force | Out-Null
# Desabilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDs' -PropertyType DWord -Value 0 -Force | Out-Null

(valores da lista)

REG_SZComputador
Valor habilitado
Depende do valor da opção
Elemento
Impedir a instalação de dispositivos que correspondam a qualquer destas identificações de dispositivo:
Tipo de valor
REG_SZ
Prefixo do nome do valor
-
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Adicione um valor por entrada da lista, aumentando o número
"1"="<inserir valor>"
"2"="<inserir valor>"
CMD
:: Adicione um valor por entrada da lista, aumentando o número

reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "1" /t REG_SZ /d "<inserir valor>" /f
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "2" /t REG_SZ /d "<inserir valor>" /f
PowerShell
# Adicione um valor por entrada da lista, aumentando o número

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

DenyDeviceIDsRetroactive

REG_DWORDComputador
Marcado
1
Desmarcado
0
Elemento
Também aplique a dispositivos correspondentes já instalados.
Tipo de valor
REG_DWORD
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Marcado
"DenyDeviceIDsRetroactive"=dword:00000001
; Desmarcado
"DenyDeviceIDsRetroactive"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Marcado
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDsRetroactive" /t REG_DWORD /d 1 /f
:: Desmarcado
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDsRetroactive" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Force | Out-Null

# Opções (use apenas uma)
# Marcado
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDsRetroactive' -PropertyType DWord -Value 1 -Force | Out-Null
# Desmarcado
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDsRetroactive' -PropertyType DWord -Value 0 -Force | Out-Null