Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2003
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Value name | RegisterSpoolerRemoteRpcEndPoint |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 2 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy controls whether the print spooler will accept client connections.
When the policy is unconfigured or enabled, the spooler will always accept client connections.
When the policy is disabled, the spooler will not accept client connections nor allow users to share printers. All printers currently shared will continue to be shared.
The spooler must be restarted for changes to this policy to take effect.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Allow Print Spooler to accept client connections
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'RegisterSpoolerRemoteRpcEndPoint' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name RegisterSpoolerRemoteRpcEndPoint
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Value name | PublishPrinters |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
Determines whether the computer's shared printers can be published in Active Directory.
If you enable this setting or do not configure it, users can use the "List in directory" option in the Printer's Properties' Sharing tab to publish shared printers in Active Directory.
If you disable this setting, this computer's shared printers cannot be published in Active Directory, and the "List in directory" option is not available.
Note: This settings takes priority over the setting "Automatically publish new printers in the Active Directory".
Group Policy path: Computer Configuration > Administrative Templates > Printers > Allow printers to be published
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PublishPrinters' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name PublishPrinters
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Value name | Immortal |
|---|
| Enabled writes | 0 (REG_DWORD) |
|---|
| Disabled writes | 1 (REG_DWORD) |
|---|
What it does (vendor explanation)
Determines whether the domain controller can prune (delete from Active Directory) the printers published by this computer.
By default, the pruning service on the domain controller prunes printer objects from Active Directory if the computer that published them does not respond to contact requests. When the computer that published the printers restarts, it republishes any deleted printer objects.
If you enable this setting or do not configure it, the domain controller prunes this computer's printers when the computer does not respond.
If you disable this setting, the domain controller does not prune this computer's printers. This setting is designed to prevent printers from being pruned when the computer is temporarily disconnected from the network.
Note: You can use the "Directory Pruning Interval" and "Directory Pruning Retry" settings to adjust the contact interval and number of contact attempts.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Allow pruning of published printers
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'Immortal' -Value 0 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name ImmortalPrintQueue
Per machine Release not stated
Supported on: Windows Server 2003, Windows XP, and Windows 2000 only
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers\Wizard |
|---|
| Value name | Auto Publishing |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor 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.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Automatically publish new printers in Active Directory
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard' -Name 'Auto Publishing' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name AutoPublishing
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Option | Value | Type | Allowed values |
|---|
| Published State Check Interval: | VerifyPublishedState | | 30 (REG_DWORD) = 30 Minutes 60 (REG_DWORD) = 1 Hour 240 (REG_DWORD) = 4 Hours 480 (REG_DWORD) = 8 Hours 720 (REG_DWORD) = 12 Hours 1440 (REG_DWORD) = 1 Day 4294967295 (REG_DWORD) = Never |
What it does (vendor explanation)
Directs the system to periodically verify that the printers published by this computer still appear in Active Directory. This setting also specifies how often the system repeats the verification.
By default, the system only verifies published printers at startup. This setting allows for periodic verification while the computer is operating.
To enable this additional verification, enable this setting, and then select a verification interval.
To disable verification, disable this setting, or enable this setting and select "Never" for the verification interval.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Check published state
PowerShell equivalent (generated from the template)
# Published State Check Interval:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'VerifyPublishedState' -Value 30 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name VerifyPublishedState
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Option | Value | Type | Allowed values |
|---|
| Interval: | PruningInterval | | 0 (REG_DWORD) = Continuous 10 (REG_DWORD) = 10 Minutes 30 (REG_DWORD) = 30 Minutes 60 (REG_DWORD) = 1 Hour 240 (REG_DWORD) = 4 Hours 480 (REG_DWORD) = 8 Hours 720 (REG_DWORD) = 12 Hours 1440 (REG_DWORD) = 1 Day 2880 (REG_DWORD) = 2 Days 4320 (REG_DWORD) = 3 Days 5760 (REG_DWORD) = 4 Days 7200 (REG_DWORD) = 5 Days 8640 (REG_DWORD) = 6 Days 10080 (REG_DWORD) = 1 Week 20160 (REG_DWORD) = 2 Weeks 30240 (REG_DWORD) = 3 Weeks 40320 (REG_DWORD) = 4 Weeks 50400 (REG_DWORD) = 5 Weeks 60480 (REG_DWORD) = 6 Weeks 70560 (REG_DWORD) = 7 Weeks 4294967295 (REG_DWORD) = Infinite |
What it does (vendor explanation)
Specifies how often the pruning service on a domain controller contacts computers to verify that their printers are operational.
The pruning service periodically contacts computers that have published printers. If a computer does not respond to the contact message (optionally, after repeated attempts), the pruning service "prunes" (deletes from Active Directory) printer objects the computer has published.
By default, the pruning service contacts computers every eight hours and allows two repeated contact attempts before deleting printers from Active Directory.
If you enable this setting, you can change the interval between contact attempts.
If you do not configure or disable this setting the default values will be used.
Note: This setting is used only on domain controllers.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Directory pruning interval
PowerShell equivalent (generated from the template)
# Interval:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -Value 0 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name PruningInterval
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Option | Value | Type | Allowed values |
|---|
| Priority level: | PruningPriority | | 4294967294 (REG_DWORD) = Lowest 4294967295 (REG_DWORD) = Below Normal 0 (REG_DWORD) = Normal 1 (REG_DWORD) = Above Normal 2 (REG_DWORD) = Highest |
What it does (vendor explanation)
Sets the priority of the pruning thread.
The pruning thread, which runs only on domain controllers, deletes printer objects from Active Directory if the printer that published the object does not respond to contact attempts. This process keeps printer information in Active Directory current.
The thread priority influences the order in which the thread receives processor time and determines how likely it is to be preempted by higher priority threads.
By default, the pruning thread runs at normal priority. However, you can adjust the priority to improve the performance of this service.
Note: This setting is used only on domain controllers.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Directory pruning priority
PowerShell equivalent (generated from the template)
# Priority level:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -Value 4294967294 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name PruningPriority
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Option | Value | Type | Allowed values |
|---|
| Retries: | PruningRetries | | 0 (REG_DWORD) = No Retry 1 (REG_DWORD) = 1 Retry 2 (REG_DWORD) = 2 Retries 3 (REG_DWORD) = 3 Retries 4 (REG_DWORD) = 4 Retries 5 (REG_DWORD) = 5 Retries 6 (REG_DWORD) = 6 Retries |
What it does (vendor explanation)
Specifies how many times the pruning service on a domain controller repeats its attempt to contact a computer before pruning the computer's printers.
The pruning service periodically contacts computers that have published printers to verify that the printers are still available for use. If a computer does not respond to the contact message, the message is repeated for the specified number of times. If the computer still fails to respond, then the pruning service "prunes" (deletes from Active Directory) printer objects the computer has published.
By default, the pruning service contacts computers every eight hours and allows two retries before deleting printers from Active Directory. You can use this setting to change the number of retries.
If you enable this setting, you can change the interval between attempts.
If you do not configure or disable this setting, the default values are used.
Note: This setting is used only on domain controllers.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Directory pruning retry
PowerShell equivalent (generated from the template)
# Retries:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -Value 0 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name PruningRetries
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2003 operating systems or Windows XP Professional
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Value name | PruningRetryLog |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
Specifies whether or not to log events when the pruning service on a domain controller attempts to contact a computer before pruning the computer's printers.
The pruning service periodically contacts computers that have published printers to verify that the printers are still available for use. If a computer does not respond to the contact attempt, the attempt is retried a specified number of times, at a specified interval. The "Directory pruning retry" setting determines the number of times the attempt is retried; the default value is two retries. The "Directory Pruning Interval" setting determines the time interval between retries; the default value is every eight hours. If the computer has not responded by the last contact attempt, its printers are pruned from the directory.
If you enable this policy setting, the contact events are recorded in the event log.
If you disable or do not configure this policy setting, the contact events are not recorded in the event log.
Note: This setting does not affect the logging of pruning events; the actual pruning of a printer is always logged.
Note: This setting is used only on domain controllers.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Log directory pruning retry events
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetryLog' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name PruningRetryLog
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 2000
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows NT\Printers |
|---|
| Option | Value | Type | Allowed values |
|---|
| Prune non-republishing printers: | PruneDownlevel | | 0 (REG_DWORD) = Never 1 (REG_DWORD) = Only if Print Server is found 2 (REG_DWORD) = Whenever printer is not found |
What it does (vendor explanation)
Determines whether the pruning service on a domain controller prunes printer objects that are not automatically republished whenever the host computer does not respond,just as it does with Windows 2000 printers. This setting applies to printers running operating systems other than Windows 2000 and to Windows 2000 printers published outside their forest.
The Windows pruning service prunes printer objects from Active Directory when the computer that published them does not respond to contact requests. Computers running Windows 2000 Professional detect and republish deleted printer objects when they rejoin the network. However, because non-Windows 2000 computers and computers in other domains cannot republish printers in Active Directory automatically, by default, the system never prunes their printer objects.
You can enable this setting to change the default behavior. To use this setting, select one of the following options from the "Prune non-republishing printers" box:
-- "Never" specifies that printer objects that are not automatically republished are never pruned. "Never" is the default.
-- "Only if Print Server is found" prunes printer objects that are not automatically republished only when the print server responds, but the printer is unavailable.
-- "Whenever printer is not found" prunes printer objects that are not automatically republished whenever the host computer does not respond, just as it does with Windows 2000 printers.
Note: This setting applies to printers published by using Active Directory Users and Computers or Pubprn.vbs. It does not apply to printers published by using Printers in Control Panel.
Tip: If you disable automatic pruning, remember to delete printer objects manually whenever you remove a printer or print server.
Group Policy path: Computer Configuration > Administrative Templates > Printers > Prune printers that are not automatically republished
PowerShell equivalent (generated from the template)
# Prune non-republishing printers:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruneDownlevel' -Value 0 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
PrintingADMX: Printing2.admx · policy name PruneDownlevel