Open in the explorer

Configure Printers preference logging and tracing

Configurer le suivi et la journalisation de l’extension de préférence Imprimantes

From Windows Server 2025, this policy is replaced by GroupPolicyPreferencesLogging/CSE_Printers_Logging (moved to another file).

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Group Policy › Logging and tracing FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Stratégie de groupe › Journalisation et suivi
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional with SP2 FR: Au minimum Windows Server 2003 ou Windows XP Professionnel avec SP2
ADMX file
grouppolicypreferences.admx
Internal name
grouppolicypreferences/CSE_Printers_Logging

Explanation

This policy setting allows you to configure the level of detail recorded by event logging for the Printers preference extension, and to turn on tracing for the Printers 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 Printers 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.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de configurer le niveau de détail des informations consignées dans le journal des événements pour l’extension de préférence Imprimantes et d’activer le suivi de l’extension Imprimantes. La journalisation et le suivi servent à établir un diagnostic lors de la résolution des problèmes.

Si vous activez ce paramètre de stratégie, vous pouvez configurer la journalisation et activer le suivi de l’extension Imprimantes pour les ordinateurs clients.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, par défaut, le journal des événements pour cette extension contient uniquement des avertissements et des erreurs et la fonction de suivi est désactivée.

Remarques :

1. Suivi Configuration utilisateur : pour assurer le suivi des éléments de cette extension de préférence indiqués sous Configuration utilisateur, vous devez spécifier, dans la zone « Suivi utilisateur », le chemin d’accès au fichier de suivi utilisateur à créer sur l’ordinateur client, puis activer l’option « Suivi ». Si aucun élément de préférence n’est répertorié sous Configuration utilisateur pour cette extension, aucun fichier de suivi utilisateur n’est créé.

2. Suivi Configuration ordinateur : cette extension de préférence est disponible uniquement sous Configuration utilisateur (le suivi de la configuration ordinateur n’est donc pas possible).

3. Suivi de la requête Modélisation de stratégie de groupe : pour assurer le suivi des éléments de cette extension de préférence lors de l’exécution d’une requête de modélisation de stratégie de groupe, vous devez spécifier, dans la zone « Planification du suivi », le chemin d’accès au fichier de suivi de planification à créer sur l’ordinateur sur lequel la modélisation est prévue, puis activer l’option « Suivi ». Si vous n’effectuez aucune modélisation de stratégie de groupe ou si aucun élément de préférence n’est défini pour cette extension, aucun fichier de suivi de planification n’est créé.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Group Policy\{BC75B1ED-5833-4858-9BB8-CBF0B166DF9D}
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: grouppolicypreferences/CSE_Printers_Logging
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Group Policy\{BC75B1ED-5833-4858-9BB8-CBF0B166DF9D}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Event logging
# Possible options:
#   Informational, Warnings and Errors = 3
#   Warnings and Errors = 2
#   Errors Only = 1
#   None = 0
Set-ItemProperty -Path $k -Name 'LogLevel' -Value 2 -Type DWord
# Tracing
# Possible options:
#   On = 2
#   Off = 0
Set-ItemProperty -Path $k -Name 'TraceLevel' -Value 0 -Type DWord
# User trace
Set-ItemProperty -Path $k -Name 'TraceFilePathUser' -Value '<value>' -Type ExpandString
# Computer trace
Set-ItemProperty -Path $k -Name 'TraceFilePathMachine' -Value '<value>' -Type ExpandString
# Planning trace
Set-ItemProperty -Path $k -Name 'TraceFilePathPlanning' -Value '<value>' -Type ExpandString
# Maximum size of trace file (KB)
Set-ItemProperty -Path $k -Name 'TraceFileMaxSize' -Value 1024 -Type DWord  # maximum 16384

Disable

# Disable: grouppolicypreferences/CSE_Printers_Logging
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": grouppolicypreferences/CSE_Printers_Logging
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Group Policy\{BC75B1ED-5833-4858-9BB8-CBF0B166DF9D}'
Remove-ItemProperty -Path $k -Name 'LogLevel' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TraceLevel' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TraceFilePathUser' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TraceFilePathMachine' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TraceFilePathPlanning' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TraceFileMaxSize' -ErrorAction SilentlyContinue

Options (6)

LabelControlRegistry valueREG typeConstraints / details
Event loggingJournalisation des événementsCSE_LOGLEVELDrop-down listenumLogLevelREG_DWORD
Default choice (UI): #1
LabelValue
Informational, Warnings and ErrorsREG_DWORD = 3
Warnings and ErrorsREG_DWORD = 2
Errors OnlyREG_DWORD = 1
NoneREG_DWORD = 0
TracingSuiviCSE_TRACELEVELDrop-down listenumTraceLevelREG_DWORD
Default choice (UI): #1
LabelValue
OnREG_DWORD = 2
OffREG_DWORD = 0
User traceSuivi utilisateurCSE_TRACEFILEPATHUSERText boxtextTraceFilePathUserREG_EXPAND_SZ
Default (UI): %COMMONAPPDATA%\GroupPolicy\Preference\Trace\User.log
Computer traceSuivi ordinateurCSE_TRACEFILEPATHMACHINEText boxtextTraceFilePathMachineREG_EXPAND_SZ
Default (UI): %COMMONAPPDATA%\GroupPolicy\Preference\Trace\Computer.log
Planning tracePlanification du suiviCSE_TRACEFILEPATHPLANNINGText boxtextTraceFilePathPlanningREG_EXPAND_SZ
Default (UI): %COMMONAPPDATA%\GroupPolicy\Preference\Trace\Planning.log
Maximum size of trace file (KB)Taille maximale du fichier de suivi (Ko)CSE_TRACEFILEMAXSIZENumeric boxdecimalTraceFileMaxSizeREG_DWORD
Max: 16384 · Default (UI): 1024

Availability

Windows Server