en-US windows computer

Directory pruning interval

Verified with Windows 11 25H2 — updated on July 30, 2026

Windows 11 25H2

Supported on: At least Windows 2000

Path in the GPO console

Computer Configuration\Administrative Templates\Printers

Description

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.

Registry

HKLM Software\Policies\Microsoft\Windows NT\Printers

More options available

Options

Interval:
PruningInterval enum
  • Continuous -> 0
  • 10 Minutes -> 10
  • 30 Minutes -> 30
  • 1 Hour -> 60
  • 4 Hours -> 240
  • 8 Hours -> 480 (default)
  • 12 Hours -> 720
  • 1 Day -> 1440
  • 2 Days -> 2880
  • 3 Days -> 4320
  • 4 Days -> 5760
  • 5 Days -> 7200
  • 6 Days -> 8640
  • 1 Week -> 10080
  • 2 Weeks -> 20160
  • 3 Weeks -> 30240
  • 4 Weeks -> 40320
  • 5 Weeks -> 50400
  • 6 Weeks -> 60480
  • 7 Weeks -> 70560
  • Infinite -> 4294967295

MDM / Intune (CSP)

./Device/Vendor/MSFT/Policy/Config/ADMX_Printing2/PruningInterval
Device Since Windows 10, version 2004 with KB5005101 [10.0.19041.1202] and later | Windows 10, version 20H2 with KB5005101 [10.0.19042.1202] and later | Windows 10, version 21H1 with KB5005101 [10.0.19043.1202] and later | Windows 11, version 21H2 [10.0.22000] and later Official mapping (Microsoft Learn)

Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Directory pruning interval
; State: Enabled
; Supported on: At least Windows 2000

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers]
"PruningInterval"=dword:000001e0
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Directory pruning interval
# State: Enabled
# Supported on: At least Windows 2000

$path = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'PruningInterval' -Value 480 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview