Allow job name in event logs
Autoriser les nom de tâche dans les journaux d'événements
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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