Permitir a instalação de dispositivos que correspondam a qualquer destas identificações de dispositivo: valor do Registro DeviceInstall_IDs_Allow (AllowDeviceIDs)ComputadorHKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs
- ID da política
- DeviceInstall_IDs_Allow
- 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
AllowDeviceIDs
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 "AllowDeviceIDs"=dword:00000001 ; Desabilitada "AllowDeviceIDs"=dword:00000000
CMD
:: Opções (use apenas uma) :: Habilitada reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "AllowDeviceIDs" /t REG_DWORD /d 1 /f :: Desabilitada reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "AllowDeviceIDs" /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 'AllowDeviceIDs' -PropertyType DWord -Value 1 -Force | Out-Null # Desabilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'AllowDeviceIDs' -PropertyType DWord -Value 0 -Force | Out-Null
(valores da lista)
REG_SZComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Permitir 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\AllowDeviceIDs] ; 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\AllowDeviceIDs" /v "1" /t REG_SZ /d "<inserir valor>" /f reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs" /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\AllowDeviceIDs' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs' -Name '1' -PropertyType String -Value '<inserir valor>' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs' -Name '2' -PropertyType String -Value '<inserir valor>' -Force | Out-Null