Open in the explorer

Allow job name in event logs

Autoriser les nom de tâche dans les journaux d'événements

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Printers FR: Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
Printing.admx
Internal name
Printing/ShowJobTitleInEventLogs

Explanation

This policy controls whether the print job name will be included in print event logs.

If you disable or do not configure this policy setting, the print job name will not be included.

If you enable this policy setting, the print job name will be included in new log entries.

Note: This setting does not apply to Branch Office Direct Printing jobs.

French text from Windows 11 26H2

Cette stratégie vérifie si le nom de la tâche d'impression est inclus dans les journaux d'événements d'impression.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le nom de la tâche du travail d'impression ne sera pas inclus.

Si vous activez ce paramètre de stratégie, le nom de la tâche d'impression sera inclus dans les nouvelles entrées de journal.

Remarque : ce paramètre ne s'applique pas aux tâches d'impression directe de filiale.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers
Value name
ShowJobTitleInEventLogs
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: Printing/ShowJobTitleInEventLogs
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ShowJobTitleInEventLogs' -Value 1 -Type DWord

Disable

# Disable: Printing/ShowJobTitleInEventLogs
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ShowJobTitleInEventLogs' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Printing/ShowJobTitleInEventLogs
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'ShowJobTitleInEventLogs' -ErrorAction SilentlyContinue

Availability