On-Device Registry Logging Level: registry value OnDeviceRegistryLoggingLevelComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI
- Policy ID
- OnDeviceRegistryLoggingLevel
- Scope
- Computer Configuration
- Supported on
- At least Windows Server 2016, Windows 10
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Windows AI
Registry
OnDeviceRegistryLoggingLevel
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- On-Device Registry Logging Level:
| Item | Stored value |
|---|---|
| Error or higher | 0 |
| Information or higher | 1 |
| Debug or higher | 2 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI] ; Options (use only one) ; Error or higher "OnDeviceRegistryLoggingLevel"=dword:00000000 ; Information or higher "OnDeviceRegistryLoggingLevel"=dword:00000001 ; Debug or higher "OnDeviceRegistryLoggingLevel"=dword:00000002
CMD
:: Options (use only one) :: Error or higher reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 0 /f :: Information or higher reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 1 /f :: Debug or higher reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "OnDeviceRegistryLoggingLevel" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Force | Out-Null # Options (use only one) # Error or higher New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 0 -Force | Out-Null # Information or higher New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 1 -Force | Out-Null # Debug or higher New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI' -Name 'OnDeviceRegistryLoggingLevel' -PropertyType DWord -Value 2 -Force | Out-Null