Open in the explorer

Automatically publish new printers in Active Directory

Publier automatiquement les nouvelles imprimantes dans Active Directory

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Printers FR: Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only FR: Windows Server 2003, Windows XP et Windows 2000 uniquement
ADMX file
Printing2.admx
Internal name
Printing2/AutoPublishing

Explanation

Determines whether the Add Printer Wizard automatically publishes the computer's shared printers in Active Directory.

If you enable this setting or do not configure it, the Add Printer Wizard automatically publishes all shared printers.

If you disable this setting, the Add Printer Wizard does not automatically publish printers. However, you can publish shared printers manually.

The default behavior is to automatically publish shared printers in Active Directory.

Note: This setting is ignored if the "Allow printers to be published" setting is disabled.

French text from Windows 11 26H2

Détermine si l’Assistant Ajout d’imprimante publie automatiquement les imprimantes partagées de l’ordinateur dans Active Directory.

Si vous activez ce paramètre ou que vous ne le configurez pas, l’Assistant Ajout d’imprimante publie automatiquement toutes les imprimantes partagées.

Si vous désactivez ce paramètre, l’Assistant Ajout d’imprimante ne publie pas automatiquement les imprimantes. Cependant, vous pouvez publier les imprimantes partagées manuellement.

Le comportement par défaut est de publier automatiquement les imprimantes partagées dans Active Directory.

Remarque : ce paramètre est ignoré si le paramètre « Autoriser la publication des imprimantes » est désactivé.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\Wizard
Value name
Auto Publishing
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: Printing2/AutoPublishing
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Auto Publishing' -Value 1 -Type DWord

Disable

# Disable: Printing2/AutoPublishing
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Auto Publishing' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Printing2/AutoPublishing
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
Remove-ItemProperty -Path $k -Name 'Auto Publishing' -ErrorAction SilentlyContinue

Availability