Automatically publish new printers in Active Directory
Publier automatiquement les nouvelles imprimantes dans Active Directory
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.
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
| 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: 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 DWordDisable
# 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 DWordRevert 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