Priorytet oczyszczania katalogów: wartość rejestru PruningPriorityKomputerHKLM\Software\Policies\Microsoft\Windows NT\Printers

Identyfikator zasady
PruningPriority
Zakres
Konfiguracja komputera
Obsługiwane w systemach
System Windows 2000 lub nowszy
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Drukarki

Rejestr

PruningPriority

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Poziom priorytetu:
Opcje
PozycjaZapisana wartość
Najniższy4294967294
Poniżej normalnego4294967295
Normalny0
Powyżej normalnego1
Najwyższy2
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Najniższy
"PruningPriority"=dword:fffffffe
; Poniżej normalnego
"PruningPriority"=dword:ffffffff
; Normalny
"PruningPriority"=dword:00000000
; Powyżej normalnego
"PruningPriority"=dword:00000001
; Najwyższy
"PruningPriority"=dword:00000002
CMD
:: Opcje (użyj tylko jednej)

:: Najniższy
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967294 /f
:: Poniżej normalnego
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967295 /f
:: Normalny
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 0 /f
:: Powyżej normalnego
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 1 /f
:: Najwyższy
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 2 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Najniższy
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967294 -Force | Out-Null
# Poniżej normalnego
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967295 -Force | Out-Null
# Normalny
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 0 -Force | Out-Null
# Powyżej normalnego
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 1 -Force | Out-Null
# Najwyższy
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 2 -Force | Out-Null