Open in the explorer

Prevent deletion of printers

Interdire la suppression des imprimantes

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Control Panel › Printers FR: Configuration utilisateur › Stratégies › Modèles d'administration › Panneau de configuration › Imprimantes
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
Printing.admx
Internal name
Printing/NoDeletePrinter

Explanation

If this policy setting is enabled, it prevents users from deleting local and network printers.

If a user tries to delete a printer, such as by using the Delete option in Printers in Control Panel, a message appears explaining that a setting prevents the action.

This setting does not prevent users from running other programs to delete a printer.

If this policy is disabled, or not configured, users can delete printers using the methods described above.

French text from Windows 11 26H2

Lorsque ce paramètre de stratégie est activé, il empêche les utilisateurs de supprimer des imprimantes locales et réseau.

Si un utilisateur tente de supprimer une imprimante, par exemple en utilisant l’option Supprimer de l’application Imprimantes dans le Panneau de configuration, un message s’affiche pour expliquer que cette action est interdite par un paramètre.

Ce paramètre n’empêche pas les utilisateurs d’exécuter d’autres programmes de suppression d’une imprimante.

Si cette stratégie est désactivée ou si elle n’est pas configurée, les utilisateurs peuvent supprimer des imprimantes en faisant appel aux méthodes décrites ci-dessus.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoDeletePrinter
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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/NoDeletePrinter
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoDeletePrinter' -Value 1 -Type DWord

Disable

# Disable: Printing/NoDeletePrinter
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoDeletePrinter' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Printing/NoDeletePrinter
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoDeletePrinter' -ErrorAction SilentlyContinue

Availability