Configure Windows protected print
Configurer l’impression protégée Windows
Explanation
Determines whether Windows protected print is enabled on this computer.
By default, Windows protected print is not enabled and there are not any restrictions on the print drivers that can be installed or print functionality.
If you enable this setting, the computer will operate in Windows protected print mode which only allows printing to printers that support a subset of inbox Windows print drivers.
If you disable this setting or do not configure it, there are not any restrictions on the print drivers that can be installed or print functionality.
For more information, please see https://learn.microsoft.com/en-us/windows-hardware/drivers/print/windows-protected-print-mode
Détermine si l’impression protégée par Windows est activée sur cet ordinateur.
Par défaut, l’impression protégée par Windows n’est pas activée et il n’existe aucune restriction sur les pilotes d’impression pouvant être installés ou la fonctionnalité d’impression.
Si vous activez ce paramètre, l’ordinateur fonctionne en mode d’impression protégé par Windows, ce qui autorise uniquement l’impression sur des imprimantes qui prennent en charge un sous-ensemble de pilotes d’impression Windows de boîte de réception.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, il n’existe aucune restriction sur les pilotes d’impression qui peuvent être installés ou la fonctionnalité d’impression.
Pour plus d’informations, consultez https://learn.microsoft.com/en-us/windows-hardware/drivers/print/windows-protected-print-mode
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\WPP- Value name
WindowsProtectedPrintGroupPolicyState
| 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/ConfigureWindowsProtectedPrint
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\WPP'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WindowsProtectedPrintGroupPolicyState' -Value 1 -Type DWordDisable
# Disable: Printing/ConfigureWindowsProtectedPrint
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\WPP'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WindowsProtectedPrintGroupPolicyState' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Printing/ConfigureWindowsProtectedPrint
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\WPP'
Remove-ItemProperty -Path $k -Name 'WindowsProtectedPrintGroupPolicyState' -ErrorAction SilentlyContinue