Point and Print Restrictions
Restrictions Pointer et imprimer
Explanation
This policy setting controls the client Point and Print behavior, including the security prompts for Windows Vista computers. The policy setting applies only to non-Print Administrator clients, and only to computers that are members of a domain.
If you enable this policy setting:
-Windows XP and later clients will only download print driver components from a list of explicitly named servers. If a compatible print driver is available on the client, a printer connection will be made. If a compatible print driver is not available on the client, no connection will be made.
-You can configure Windows Vista clients so that security warnings and elevated command prompts do not appear when users Point and Print, or when printer connection drivers need to be updated.
If you do not configure this policy setting:
-Windows Vista client computers can point and print to any server.
-Windows Vista computers will show a warning and an elevated command prompt when users create a printer connection to any server using Point and Print.
-Windows Vista computers will show a warning and an elevated command prompt when an existing printer connection driver needs to be updated.
-Windows Server 2003 and Windows XP client computers can create a printer connection to any server in their forest using Point and Print.
If you disable this policy setting:
-Windows Vista client computers can create a printer connection to any server using Point and Print.
-Windows Vista computers will not show a warning or an elevated command prompt when users create a printer connection to any server using Point and Print.
-Windows Vista computers will not show a warning or an elevated command prompt when an existing printer connection driver needs to be updated.
-Windows Server 2003 and Windows XP client computers can create a printer connection to any server using Point and Print.
-The "Users can only point and print to computers in their forest" setting applies only to Windows Server 2003 and Windows XP SP1 (and later service packs).
Ce paramètre de stratégie contrôle le comportement Pointer et imprimer des clients, y compris les invites de sécurité pour les ordinateurs Windows Vista. Le paramètre de stratégie s’applique uniquement aux clients non administrateurs d’imprimantes et aux ordinateurs qui sont membres d’un domaine.
Si vous activez ce paramètre de stratégie :
- Les clients Windows XP et de versions ultérieures peuvent uniquement télécharger des composants pilotes d’impression à partir d’une liste de serveurs explicitement nommés. Si un pilote d’impression est disponible sur le client, une connexion d’imprimante est établie. Si aucun pilote d’impression n’est disponible sur le client, aucune connexion n’est établie.
- Vous pouvez configurer les clients Windows Vista pour ne pas afficher les avertissements de sécurité ou les invites d’élévation lorsque les utilisateurs pointent et impriment ou lorsque les connexions d’imprimantes doivent être mises à jour.
Si ce paramètre de stratégie n’est pas configuré :
- Les ordinateurs client Windows Vista peuvent pointer et imprimer vers n’importe quel serveur.
- Les ordinateurs Windows Vista affichent un avertissement et une invite d’élévation lorsque les utilisateurs créent une connexion d’imprimante vers n’importe quel serveur à l’aide de l’opération Pointer et imprimer.
- Les ordinateurs Windows Vista affichent un avertissement et une invite d’élévation lorsque le pilote d’une connexion d’imprimante existante doit être mis à jour.
- Les ordinateurs clients Windows Server 2003 et Windows XP peuvent créer une connexion d’imprimante vers n’importe quel serveur de leur forêt à l’aide de l’opération Pointer et imprimer.
Si ce paramètre de stratégie est désactivé :
- Les ordinateurs client Windows Vista peuvent créer une connexion d’imprimante vers n’importe quel serveur à l’aide de l’opération Pointer et imprimer.
- Les ordinateurs Windows Vista n’affichent pas d’avertissement ni d’invite d’élévation lorsque les utilisateurs créent une connexion d’imprimante vers n’importe quel serveur à l’aide de l’opération Pointer et imprimer.
- Les ordinateurs Windows Vista n’affichent pas d’avertissement ni d’invite d’élévation lorsque le pilote d’une connexion d’imprimante existante doit être mis à jour.
- Les ordinateurs clients Windows Server 2003 et Windows XP peuvent créer une connexion d’imprimante vers n’importe quel serveur à l’aide de l’opération Pointer et imprimer.
- Le paramètre Les utilisateurs peuvent pointer et imprimer vers des ordinateurs de leur forêt uniquement s’applique uniquement à Windows Server 2003 et à Windows XP SP1 (et Service Pack ultérieur).
Use cases
Restricts the print servers machines can connect to and requires a warning and elevation (UAC prompt) to install or update drivers. After PrintNightmare, Microsoft asks you to choose "Show warning and elevation prompt" for both new and existing connections.
NoWarningNoElevationOnInstall and UpdatePromptSettings must be 0 or absent: any non-zero value leaves the device vulnerable. This setting does not replace the administrator-only restriction.
Microsoft sources: KB5005010: Restricting installation of new printer drivers after applying the July 6, 2021 updates · KB5005652: Manage new Point and Print default driver installation behavior (CVE-2021-34481)
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint- Value name
Restricted
| 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/PointAndPrint_Restrictions_Win7
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Restricted' -Value 1 -Type DWord
# Users can only point and print to these servers
# unchecked: 0
Set-ItemProperty -Path $k -Name 'TrustedServers' -Value 1 -Type DWord
# Enter fully qualified server names separated by semicolons
Set-ItemProperty -Path $k -Name 'ServerList' -Value '<value>' -Type String
# Users can only point and print to machines in their forest
# unchecked: 0
Set-ItemProperty -Path $k -Name 'InForest' -Value 1 -Type DWord
# When installing drivers for a new connection
# Possible options:
# Show warning and elevation prompt = 0
# Do not show warning or elevation prompt = 1
Set-ItemProperty -Path $k -Name 'NoWarningNoElevationOnInstall' -Value 0 -Type DWord
# When updating drivers for an existing connection
# Possible options:
# Show warning and elevation prompt = 0
# Show warning only = 1
# Do not show warning or elevation prompt = 2
Set-ItemProperty -Path $k -Name 'UpdatePromptSettings' -Value 0 -Type DWordDisable
# Disable: Printing/PointAndPrint_Restrictions_Win7
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Restricted' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Printing/PointAndPrint_Restrictions_Win7
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint'
Remove-ItemProperty -Path $k -Name 'Restricted' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TrustedServers' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ServerList' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'InForest' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NoWarningNoElevationOnInstall' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'UpdatePromptSettings' -ErrorAction SilentlyContinueOptions (5)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Users can only point and print to these servers:Les utilisateurs ne peuvent pointer et imprimer que sur ces serveurs :PointAndPrint_TrustedServers_Chk | Check boxboolean | TrustedServers | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Enter fully qualified server names separated by semicolonsEntrez des noms de serveurs complets, séparés par un point-virgulePointAndPrint_TrustedServers_Edit | Text boxtext | ServerList | REG_SZ | Max length: 8192 | ||||||||
| Users can only point and print to machines in their forestLes utilisateurs ne peuvent pointer et imprimer que sur des imprimantes situées dans leur forêtPointAndPrint_TrustedForest_Chk | Check boxboolean | InForest | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| When installing drivers for a new connection:Lors de l’installation des pilotes pour une nouvelle connexion :PointAndPrint_NoWarningNoElevationOnInstall_Enum | Drop-down listenum | NoWarningNoElevationOnInstall | REG_DWORD |
| ||||||||
| When updating drivers for an existing connection:Lors de la mise à jour des pilotes pour une connexion existante :PointAndPrint_NoWarningNoElevationOnUpdate_Enum | Drop-down listenum | UpdatePromptSettings | REG_DWORD |
|