Package Point and print - Approved servers
Pointer et imprimer les packages - Serveurs approuvés
Explanation
Restricts package point and print to approved servers.
This policy setting restricts package point and print connections to approved servers. This setting only applies to Package Point and Print connections, and is completely independent from the "Point and Print Restrictions" policy that governs the behavior of non-package point and print connections.
Windows Vista and later clients will attempt to make a non-package point and print connection anytime a package point and print connection fails, including attempts that are blocked by this policy. Administrators may need to set both policies to block all print connections to a specific print server.
If this setting is enabled, users will only be able to package point and print to print servers approved by the network administrator. When using package point and print, client computers will check the driver signature of all drivers that are downloaded from print servers.
If this setting is disabled, or not configured, package point and print will not be restricted to specific print servers.
Limite l’opération Pointer et imprimer les packages aux serveurs approuvés.
Ce paramètre de stratégie limite les connexions Pointer et imprimer les packages aux serveurs approuvés. Ce paramètre s’applique uniquement aux connexions Pointer et imprimer les packages et il est totalement indépendant de la stratégie « Restrictions Pointer et imprimer » qui régit le comportement des connexions Pointer et imprimer les fichiers non-package.
Windows Vista et les clients des versions ultérieures tentent d’établir une connexion Pointer et imprimer les fichiers non-package chaque fois qu’une connexion Pointer et imprimer les packages échoue, y compris en cas de tentatives bloquées par cette stratégie. Il est possible que les administrateurs doivent définir les deux stratégies pour bloquer toutes les connexions d’impression à un serveur d’impression spécifique.
Si ce paramètre est activé, les utilisateurs peuvent uniquement pointer et imprimer les packages sur des serveurs d’impression approuvés par l’administrateur réseau. Lorsqu’ils utilisent Pointer et imprimer les packages, les ordinateurs client vérifient la signature de tous les pilotes téléchargés à partir des serveurs d’impression.
Si ce paramètre est désactivé ou s’il n’est pas configuré, l’opération Pointer et imprimer les packages n’est pas limitée à des serveurs d’impression spécifiques.
Use cases
Restricts Point and Print connections to the print servers you list (fully qualified names separated by semicolons; IP addresses accepted since the September 2021 updates). It is the allow list that keeps a machine from connecting to an unknown print server.
Listed servers must use package-aware drivers. On update order, apply the January 2021 patches on clients before the September 2021 ones on servers, otherwise printing may fail.
Microsoft source: KB5005652: Manage new Point and Print default driver installation behavior (CVE-2021-34481)
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Printers\PackagePointAndPrint- Value name
PackagePointAndPrintServerList
| 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/PackagePointAndPrintServerList
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers\PackagePointAndPrint'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PackagePointAndPrintServerList' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers\PackagePointAndPrint\ListofServers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enter fully qualified server names
$values = @('<value1>', '<value2>') # Replace the values with your own
foreach ($v in $values) { Set-ItemProperty -Path $k -Name $v -Value $v -Type String }Disable
# Disable: Printing/PackagePointAndPrintServerList
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers\PackagePointAndPrint'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PackagePointAndPrintServerList' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Printing/PackagePointAndPrintServerList
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers\PackagePointAndPrint'
Remove-ItemProperty -Path $k -Name 'PackagePointAndPrintServerList' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers\PackagePointAndPrint\ListofServers'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Enter fully qualified server namesEntrez des noms de serveurs completsPackagePointAndPrintServerList_Edit | List (table)list | Software\Policies\Microsoft\Windows NT\Printers\PackagePointAndPrint\ListofServersNumbered values (1, 2, 3…) · additive | REG_SZ (values under the key) |