Nível de Log do Registro no Dispositivo: valor do Registro OnDeviceRegistryLoggingLevelComputadorHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI
- ID da política
- OnDeviceRegistryLoggingLevel
- Escopo
- Configuração do Computador
- Compatível com
- Pelo menos Windows Server 2016, Windows 10
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Componentes do Windows › IA do Windows
Registro
OnDeviceRegistryLoggingLevel
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Nível de Log do Registro no Dispositivo:
| Item | Valor armazenado |
|---|---|
| Erro ou mais grave | 0 |
| Informação ou superior | 1 |
| Depuração ou superior | 2 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI] ; Opções (use apenas uma) ; Erro ou mais grave "OnDeviceRegistryLoggingLevel"=dword:00000000 ; Informação ou superior "OnDeviceRegistryLoggingLevel"=dword:00000001 ; Depuração ou superior "OnDeviceRegistryLoggingLevel"=dword:00000002
CMD
:: Opções (use apenas uma) :: Erro ou mais grave reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 0 /f :: Informação ou superior reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 1 /f :: Depuração ou superior reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Force | Out-Null # Opções (use apenas uma) # Erro ou mais grave New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 0 -Force | Out-Null # Informação ou superior New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 1 -Force | Out-Null # Depuração ou superior New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 2 -Force | Out-Null