fr-FR windows computer

Configure Shortcuts preference logging and tracing

Vérifié avec Windows 11 25H2 — mis à jour le 12 juillet 2026

Windows 11 25H2

Pris en charge sur : Au minimum Windows Server 2003 ou Windows XP Professionnel avec SP2

Chemin dans la console GPO

Configuration ordinateur\Modèles d'administration\Système\Stratégie de groupe\Logging and tracing

Description

This policy setting allows you to configure the level of detail recorded by event logging for the Shortcuts preference extension, and to turn on tracing for the Shortcuts extension. Logging and tracing provide diagnostic information for troubleshooting. If you enable this policy setting, you can configure event logging and turn on tracing for the Shortcuts extension for client computers. If you disable or do not configure this policy setting, by default event logging for this extension includes only warnings and errors, and tracing for this extension is turned off. Notes: 1. User Configuration tracing: To perform tracing for items in this preference extension listed under User Configuration, you must provide a path in the "User trace" box to the location where a user trace file can be created on the client computer, and you must turn on the "Tracing" option. If there are no preference items under User Configuration in this extension, no user trace file is created. 2. Computer Configuration tracing: This preference extension is available under User Configuration only, so computer configuration tracing is not applicable. 3. Group Policy Modeling query tracing: To perform tracing for items in this preference extension when you perform a Group Policy Modeling query, you must provide a path in the "Planning trace" box to the location where a planning trace file can be created on the computer where you run modeling, and you must turn on the "Tracing" option. If you are not performing Group Policy Modeling or there are no preference items in this extension, no planning trace file is created.

Registre

HKLM Software\Policies\Microsoft\Windows\Group Policy\{C418DD9D-0D14-4efb-8FBF-CFE535C8FAC7}

Plus d'options disponibles

Options

Event logging
LogLevel enum
  • Informational, Warnings and Errors -> 3
  • Warnings and Errors -> 2 (défaut)
  • Errors Only -> 1
  • None -> 0
Tracing
TraceLevel enum
  • On -> 2
  • Off -> 0 (défaut)
User trace
TraceFilePathUser text
Computer trace
TraceFilePathMachine text
Planning trace
TraceFilePathPlanning text
Maximum size of trace file (KB)
TraceFileMaxSize decimal - plage 0-16384 - défaut : 1024

Générateur d'exports

BETA

Configurez l'état, la portée et les options, puis générez les sorties .reg, PowerShell, Intune et SCCM — ou ajoutez le paramètre à une collection multi-paramètres.

Ces exports écrivent le registre — ce n'est pas une GPO managée.

Fichier .reg

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Configure Shortcuts preference logging and tracing
; State: Enabled
; Supported on: Au minimum Windows Server 2003 ou Windows XP Professionnel avec SP2

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Group Policy\{C418DD9D-0D14-4efb-8FBF-CFE535C8FAC7}]
"LogLevel"=dword:00000002
"TraceLevel"=dword:00000000
"TraceFilePathUser"=""
"TraceFilePathMachine"=""
"TraceFilePathPlanning"=""
"TraceFileMaxSize"=dword:00000400
Autres formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Configure Shortcuts preference logging and tracing
# State: Enabled
# Supported on: Au minimum Windows Server 2003 ou Windows XP Professionnel avec SP2

$path = 'HKLM:\Software\Policies\Microsoft\Windows\Group Policy\{C418DD9D-0D14-4efb-8FBF-CFE535C8FAC7}'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'LogLevel' -Value 2 -Type DWord
Set-ItemProperty -Path $path -Name 'TraceLevel' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'TraceFilePathUser' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'TraceFilePathMachine' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'TraceFilePathPlanning' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'TraceFileMaxSize' -Value 1024 -Type DWord

Vous construisez une collection multi-paramètres ? Ajoutez ce paramètre et générez des exports combinés (.reg, PowerShell, GPO).

Ouvrir le Builder

Intégrer cette GPO sur votre site

Contenu à intégrer
Thème

Ajoute une ligne de script : le thème suit l’apparence de votre site et la hauteur s’ajuste au contenu. Si votre site bloque les scripts, l’intégration suit le thème du système du visiteur.

Aperçu