Configure Applications preference logging and tracing
Configurer le suivi et la journalisation de l’extension de préférence Applications
In Windows Server 2025, this policy replaces grouppolicypreferences/CSE_Applications_Logging (moved to another file).
Explanation
This policy setting allows you to configure the level of detail recorded by event logging for the Applications preference extension, and to turn on tracing for the Applications 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 Applications 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.
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 Applications et d’activer le suivi de l’extension Applications. 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 des événements et activer le suivi de l’extension Applications pour les ordinateurs clients.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, par défaut, la journalisation 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\{F9C77450-3A41-477E-9310-9ACD617BD9E3}- 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: GroupPolicyPreferencesLogging/CSE_Applications_Logging
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Group Policy\{F9C77450-3A41-477E-9310-9ACD617BD9E3}'
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 16384Disable
# Disable: GroupPolicyPreferencesLogging/CSE_Applications_Logging
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": GroupPolicyPreferencesLogging/CSE_Applications_Logging
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Group Policy\{F9C77450-3A41-477E-9310-9ACD617BD9E3}'
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 SilentlyContinueOptions (6)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Event loggingJournalisation des événementsCSE_LOGLEVEL | Drop-down listenum | LogLevel | REG_DWORD | Default choice (UI): #1
| ||||||||||
| TracingSuiviCSE_TRACELEVEL | Drop-down listenum | TraceLevel | REG_DWORD | Default choice (UI): #1
| ||||||||||
| User traceSuivi utilisateurCSE_TRACEFILEPATHUSER | Text boxtext | TraceFilePathUser | REG_EXPAND_SZ | Default (UI): %COMMONAPPDATA%\GroupPolicy\Preference\Trace\User.log | ||||||||||
| Computer traceSuivi ordinateurCSE_TRACEFILEPATHMACHINE | Text boxtext | TraceFilePathMachine | REG_EXPAND_SZ | Default (UI): %COMMONAPPDATA%\GroupPolicy\Preference\Trace\Computer.log | ||||||||||
| Planning tracePlanification du suiviCSE_TRACEFILEPATHPLANNING | Text boxtext | TraceFilePathPlanning | REG_EXPAND_SZ | Default (UI): %COMMONAPPDATA%\GroupPolicy\Preference\Trace\Planning.log | ||||||||||
| Maximum size of trace file (KB)Taille maximale du fichier de suivi (Ko)CSE_TRACEFILEMAXSIZE | Numeric boxdecimal | TraceFileMaxSize | REG_DWORD | Max: 16384 · Default (UI): 1024 |