Ouvrir dans l'explorateur

Niveau de journalisation du registre sur l’appareil

On-Device Registry Logging Level

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows AI EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Windows AI
Pris en charge sur
Au moins Windows Server 2016, Windows 10 EN : At least Windows Server 2016, Windows 10
Fichier ADMX
WindowsCopilot.admx
Nom interne
WindowsCopilot/OnDeviceRegistryLoggingLevel

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie vous permet de configurer le niveau de journalisation pour les opérations de Registre sur l’appareil.

This policy setting allows you to configure the logging level for on-device registry operations.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : WindowsCopilot/OnDeviceRegistryLoggingLevel
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Niveau de journalisation du registre sur l’appareil
# Options possibles :
#   Error or higher = 0
#   Information or higher = 1
#   Debug or higher = 2
Set-ItemProperty -Path $k -Name 'OnDeviceRegistryLoggingLevel' -Value 0 -Type DWord

Désactiver

# Désactiver : WindowsCopilot/OnDeviceRegistryLoggingLevel
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsCopilot/OnDeviceRegistryLoggingLevel
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsAI'
Remove-ItemProperty -Path $k -Name 'OnDeviceRegistryLoggingLevel' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Niveau de journalisation du registre sur l’appareil :On-Device Registry Logging Level:OnDeviceRegistryLoggingLevel_EnumListe déroulanteenumOnDeviceRegistryLoggingLevelREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
Error or higherREG_DWORD = 0
Information or higherREG_DWORD = 1
Debug or higherREG_DWORD = 2

Disponibilité

Windows 11

✓ 26H2— 25H2— 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

— 2025— 2022— 2016