Livello di registrazione del registro di sistema sul dispositivo: valore del Registro di sistema OnDeviceRegistryLoggingLevelComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI

ID criterio
OnDeviceRegistryLoggingLevel
Ambito
Configurazione computer
Supportato in
Almeno Windows Server 2016 o Windows 10
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Componenti di Windows › Windows AI

Registro

OnDeviceRegistryLoggingLevel

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Livello di registrazione del registro di sistema sul dispositivo:
Opzioni
VoceValore memorizzato
Errore o superiore0
Informazioni o superiore1
Debug o superiore2
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI]

; Opzioni (usarne solo una)
; Errore o superiore
"OnDeviceRegistryLoggingLevel"=dword:00000000
; Informazioni o superiore
"OnDeviceRegistryLoggingLevel"=dword:00000001
; Debug o superiore
"OnDeviceRegistryLoggingLevel"=dword:00000002
CMD
:: Opzioni (usarne solo una)

:: Errore o superiore
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 0 /f
:: Informazioni o superiore
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 1 /f
:: Debug o superiore
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 2 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Force | Out-Null

# Opzioni (usarne solo una)
# Errore o superiore
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 0 -Force | Out-Null
# Informazioni o superiore
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 1 -Force | Out-Null
# Debug o superiore
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 2 -Force | Out-Null