Configurer l’impression protégée Windows
Configure Windows protected print
Explication
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
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
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\WPP- Nom de la valeur
WindowsProtectedPrintGroupPolicyState
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : 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 DWordDésactiver
# Désactiver : 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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : Printing/ConfigureWindowsProtectedPrint
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\WPP'
Remove-ItemProperty -Path $k -Name 'WindowsProtectedPrintGroupPolicyState' -ErrorAction SilentlyContinue