ディレクトリの排除の再試行 のレジストリ値 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]

; 選択項目 (1 つだけ使用)
; 再試行しない
"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
:: 選択項目 (1 つだけ使用)

:: 再試行しない
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

# 選択項目 (1 つだけ使用)
# 再試行しない
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