Prioridade de remoção de diretório: valor do Registro PruningPriorityComputadorHKLM\Software\Policies\Microsoft\Windows NT\Printers

ID da política
PruningPriority
Escopo
Configuração do Computador
Compatível com
Windows 2000 ou posterior
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Impressoras

Registro

PruningPriority

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Nível de prioridade:
Opções
ItemValor armazenado
Menor4294967294
Abaixo do Normal4294967295
Normal0
Acima do normal1
Maior2
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Menor
"PruningPriority"=dword:fffffffe
; Abaixo do Normal
"PruningPriority"=dword:ffffffff
; Normal
"PruningPriority"=dword:00000000
; Acima do normal
"PruningPriority"=dword:00000001
; Maior
"PruningPriority"=dword:00000002
CMD
:: Opções (use apenas uma)

:: Menor
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967294 /f
:: Abaixo do Normal
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967295 /f
:: Normal
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 0 /f
:: Acima do normal
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 1 /f
:: Maior
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null

# Opções (use apenas uma)
# Menor
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967294 -Force | Out-Null
# Abaixo do Normal
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967295 -Force | Out-Null
# Normal
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 0 -Force | Out-Null
# Acima do normal
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 1 -Force | Out-Null
# Maior
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 2 -Force | Out-Null