Priorità di eliminazione directory: valore del Registro di sistema PruningPriorityComputerHKLM\Software\Policies\Microsoft\Windows NT\Printers

ID criterio
PruningPriority
Ambito
Configurazione computer
Supportato in
Almeno Windows 2000
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Stampanti

Registro

PruningPriority

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Livello di priorità:
Opzioni
VoceValore memorizzato
Minima4294967294
Inferiore al normale4294967295
Normale0
Superiore al normale1
Massima2
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Minima
"PruningPriority"=dword:fffffffe
; Inferiore al normale
"PruningPriority"=dword:ffffffff
; Normale
"PruningPriority"=dword:00000000
; Superiore al normale
"PruningPriority"=dword:00000001
; Massima
"PruningPriority"=dword:00000002
CMD
:: Opzioni (usarne solo una)

:: Minima
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967294 /f
:: Inferiore al normale
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967295 /f
:: Normale
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 0 /f
:: Superiore al normale
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 1 /f
:: Massima
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 2 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null

# Opzioni (usarne solo una)
# Minima
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967294 -Force | Out-Null
# Inferiore al normale
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967295 -Force | Out-Null
# Normale
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 0 -Force | Out-Null
# Superiore al normale
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 1 -Force | Out-Null
# Massima
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 2 -Force | Out-Null