Directory pruning retry: registry value PruningRetriesComputerHKLM\Software\Policies\Microsoft\Windows NT\Printers

Policy ID
PruningRetries
Scope
Computer Configuration
Supported on
At least Windows 2000
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Printers

Registry

PruningRetries

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Retries:
Options
ItemStored value
No Retry0
1 Retry1
2 Retries2
3 Retries3
4 Retries4
5 Retries5
6 Retries6
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers]

; Options (use only one)
; No Retry
"PruningRetries"=dword:00000000
; 1 Retry
"PruningRetries"=dword:00000001
; 2 Retries
"PruningRetries"=dword:00000002
; 3 Retries
"PruningRetries"=dword:00000003
; 4 Retries
"PruningRetries"=dword:00000004
; 5 Retries
"PruningRetries"=dword:00000005
; 6 Retries
"PruningRetries"=dword:00000006
CMD
:: Options (use only one)

:: No Retry
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 0 /f
:: 1 Retry
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 1 /f
:: 2 Retries
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 2 /f
:: 3 Retries
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 3 /f
:: 4 Retries
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 4 /f
:: 5 Retries
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 5 /f
:: 6 Retries
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null

# Options (use only one)
# No Retry
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 0 -Force | Out-Null
# 1 Retry
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 1 -Force | Out-Null
# 2 Retries
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 2 -Force | Out-Null
# 3 Retries
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 3 -Force | Out-Null
# 4 Retries
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 4 -Force | Out-Null
# 5 Retries
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 5 -Force | Out-Null
# 6 Retries
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 6 -Force | Out-Null