List of Approved USB-connected print devices
Liste des périphériques d’impression connectés à USB approuvés
Explanation
This setting is a component of the Device Control Printing Restrictions. To use this setting, enable Device Control Printing by enabling the "Enable Device Control Printing Restrictions" setting.
When Device Control Printing is enabled, the system uses the specified list of vid/pid values to determine if the current USB connected printer is approved for local printing.
Type all the approved vid/pid combinations (separated by commas) that correspond to approved USB printer models. When a user tries to print to a USB printer queue the device vid/pid will be compared to the approved list.
Ce paramètre est un composant des restrictions d’impression de pilotage de matériel. Pour utiliser ce paramètre, activez le paramètre d’impression de contrôle de périphérique en activant le paramètre « Activer les restrictions d’impression de contrôle de périphérique ».
Lorsque l’impression du contrôle de périphérique est activée, le système utilise la liste de valeurs VID/PID spécifiée pour déterminer si l’imprimante USB connectée actuelle est approuvée pour l’impression locale.
Tapez toutes les combinaisons VID/PID approuvées (séparées par des virgules) qui correspondent aux modèles d’imprimante USB approuvés. Lorsqu’un utilisateur tente d’imprimer vers une file d’attente d’impression USB, le numéro/PID de l’appareil sera comparé à la liste approuvée.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Printers- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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/ApprovedUsbPrintDevicesUser
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# vid/pid
Set-ItemProperty -Path $k -Name 'ApprovedUsbPrintDevices' -Value '<value>' -Type StringDisable
# Disable: Printing/ApprovedUsbPrintDevicesUser
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Printing/ApprovedUsbPrintDevicesUser
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'ApprovedUsbPrintDevices' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| vid/pidApprovedUsbPrintDevices_List | Text boxtext | ApprovedUsbPrintDevices | REG_SZ | Max length: 1024 |