Intervalo de remoção de diretório: valor do Registro PruningIntervalComputadorHKLM\Software\Policies\Microsoft\Windows NT\Printers
- ID da política
- PruningInterval
- 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
PruningInterval
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Intervalo:
| Item | Valor armazenado |
|---|---|
| Contínuo | 0 |
| 10 minutos | 10 |
| 30 minutos | 30 |
| 1 hora | 60 |
| 4 horas | 240 |
| 8 horas | 480 |
| 12 horas | 720 |
| 1 dia | 1440 |
| 2 dias | 2880 |
| 3 dias | 4320 |
| 4 dias | 5760 |
| 5 dias | 7200 |
| 6 dias | 8640 |
| 1 semana | 10080 |
| 2 semanas | 20160 |
| 3 semanas | 30240 |
| 4 semanas | 40320 |
| 5 semanas | 50400 |
| 6 semanas | 60480 |
| 7 semanas | 70560 |
| Infinito | 4294967295 |
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) ; Contínuo "PruningInterval"=dword:00000000 ; 10 minutos "PruningInterval"=dword:0000000a ; 30 minutos "PruningInterval"=dword:0000001e ; 1 hora "PruningInterval"=dword:0000003c ; 4 horas "PruningInterval"=dword:000000f0 ; 8 horas "PruningInterval"=dword:000001e0 ; 12 horas "PruningInterval"=dword:000002d0 ; 1 dia "PruningInterval"=dword:000005a0 ; 2 dias "PruningInterval"=dword:00000b40 ; 3 dias "PruningInterval"=dword:000010e0 ; 4 dias "PruningInterval"=dword:00001680 ; 5 dias "PruningInterval"=dword:00001c20 ; 6 dias "PruningInterval"=dword:000021c0 ; 1 semana "PruningInterval"=dword:00002760 ; 2 semanas "PruningInterval"=dword:00004ec0 ; 3 semanas "PruningInterval"=dword:00007620 ; 4 semanas "PruningInterval"=dword:00009d80 ; 5 semanas "PruningInterval"=dword:0000c4e0 ; 6 semanas "PruningInterval"=dword:0000ec40 ; 7 semanas "PruningInterval"=dword:000113a0 ; Infinito "PruningInterval"=dword:ffffffff
CMD
:: Opções (use apenas uma) :: Contínuo reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 0 /f :: 10 minutos reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 10 /f :: 30 minutos reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 30 /f :: 1 hora reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 60 /f :: 4 horas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 240 /f :: 8 horas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 480 /f :: 12 horas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 720 /f :: 1 dia reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 1440 /f :: 2 dias reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 2880 /f :: 3 dias reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 4320 /f :: 4 dias reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 5760 /f :: 5 dias reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 7200 /f :: 6 dias reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 8640 /f :: 1 semana reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 10080 /f :: 2 semanas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 20160 /f :: 3 semanas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 30240 /f :: 4 semanas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 40320 /f :: 5 semanas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 50400 /f :: 6 semanas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 60480 /f :: 7 semanas reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 70560 /f :: Infinito reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 4294967295 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null # Opções (use apenas uma) # Contínuo New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 0 -Force | Out-Null # 10 minutos New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 10 -Force | Out-Null # 30 minutos New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 30 -Force | Out-Null # 1 hora New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 60 -Force | Out-Null # 4 horas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 240 -Force | Out-Null # 8 horas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 480 -Force | Out-Null # 12 horas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 720 -Force | Out-Null # 1 dia New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 1440 -Force | Out-Null # 2 dias New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 2880 -Force | Out-Null # 3 dias New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 4320 -Force | Out-Null # 4 dias New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 5760 -Force | Out-Null # 5 dias New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 7200 -Force | Out-Null # 6 dias New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 8640 -Force | Out-Null # 1 semana New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 10080 -Force | Out-Null # 2 semanas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 20160 -Force | Out-Null # 3 semanas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 30240 -Force | Out-Null # 4 semanas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 40320 -Force | Out-Null # 5 semanas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 50400 -Force | Out-Null # 6 semanas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 60480 -Force | Out-Null # 7 semanas New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 70560 -Force | Out-Null # Infinito New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 4294967295 -Force | Out-Null