目錄剪除重試 的登錄值 PruningRetries電腦HKLM\Software\Policies\Microsoft\Windows NT\Printers

原則 ID
PruningRetries
適用範圍
電腦設定
支援的作業系統
至少需要 Windows 2000
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
印表機

登錄

PruningRetries

REG_DWORD電腦
啟用時的值
取決於選項值
元素
重試次數:
選項
項目儲存的值
不能重試0
1 次重試1
2 次重試2
3 次重試3
4 次重試4
5 次重試5
6 次重試6
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 不能重試
"PruningRetries"=dword:00000000
; 1 次重試
"PruningRetries"=dword:00000001
; 2 次重試
"PruningRetries"=dword:00000002
; 3 次重試
"PruningRetries"=dword:00000003
; 4 次重試
"PruningRetries"=dword:00000004
; 5 次重試
"PruningRetries"=dword:00000005
; 6 次重試
"PruningRetries"=dword:00000006
CMD
:: 選項 (只使用其中一個)

:: 不能重試
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 0 /f
:: 1 次重試
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 1 /f
:: 2 次重試
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 2 /f
:: 3 次重試
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 3 /f
:: 4 次重試
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 4 /f
:: 5 次重試
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 5 /f
:: 6 次重試
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 6 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null

# 選項 (只使用其中一個)
# 不能重試
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 0 -Force | Out-Null
# 1 次重試
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 1 -Force | Out-Null
# 2 次重試
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 2 -Force | Out-Null
# 3 次重試
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 3 -Force | Out-Null
# 4 次重試
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 4 -Force | Out-Null
# 5 次重試
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 5 -Force | Out-Null
# 6 次重試
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 6 -Force | Out-Null