Turn off Windows default printer management
Désactiver la gestion des imprimantes par défaut Windows
Explanation
This preference allows you to change default printer management.
If you enable this setting, Windows will not manage the default printer.
If you disable this setting, Windows will manage the default printer.
If you do not configure this setting, default printer management will not change.
Cette préférence vous permet de modifier la gestion des imprimantes par défaut.
Si vous activez ce paramètre, Windows ne gère pas l’imprimante par défaut.
Si vous désactivez ce paramètre, Windows gère l’imprimante par défaut.
Si vous ne configurez pas ce paramètre, la gestion des imprimantes par défaut ne change pas.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows- Value name
LegacyDefaultPrinterMode
| 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/LegacyDefaultPrinterMode
$k = 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LegacyDefaultPrinterMode' -Value 1 -Type DWordDisable
# Disable: Printing/LegacyDefaultPrinterMode
$k = 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LegacyDefaultPrinterMode' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Printing/LegacyDefaultPrinterMode
$k = 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows'
Remove-ItemProperty -Path $k -Name 'LegacyDefaultPrinterMode' -ErrorAction SilentlyContinue