Do not allow v4 printer drivers to show printer extensions
Ne pas autoriser les pilotes d’impression v4 à afficher les extensions des imprimantes
Explanation
This policy determines if v4 printer drivers are allowed to run printer extensions.
V4 printer drivers may include an optional, customized user interface known as a printer extension. These extensions may provide access to more device features, but this may not be appropriate for all enterprises.
If you enable this policy setting, then all printer extensions will not be allowed to run.
If you disable this policy setting or do not configure it, then all printer extensions that have been installed will be allowed to run.
Cette stratégie détermine si des pilotes d’impression v4 sont autorisés à exécuter des extensions d’imprimante.
Les pilotes d’impression V4 peuvent inclure une interface utilisateur personnalisée et facultative appelée extension d’imprimante. Ces extensions peuvent permettre d’accéder à des fonctionnalités de périphériques supplémentaires, mais cela ne convient pas toujours à toutes les entreprises.
Si vous activez ce paramètre de stratégie, toutes les extensions d’imprimantes ne pourront pas être exécutées.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, toutes les extensions d’imprimantes installées pourront être exécutées.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers- Value name
V4DriverDisallowPrinterExtension
| 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/V4DriverDisallowPrinterExtension
$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 'V4DriverDisallowPrinterExtension' -Value 1 -Type DWordDisable
# Disable: Printing/V4DriverDisallowPrinterExtension
$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 'V4DriverDisallowPrinterExtension' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Printing/V4DriverDisallowPrinterExtension
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'V4DriverDisallowPrinterExtension' -ErrorAction SilentlyContinue