Intervalle de nettoyage d’Active Directory : valeur de Registre PruningIntervalOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Printers
- ID de stratégie
- PruningInterval
- Étendue
- Configuration ordinateur
- Pris en charge sur
- Au minimum Windows 2000
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Imprimantes
Registre
PruningInterval
REG_DWORDOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Printers Clé actuelle
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Intervalle :
| Entrée | Valeur stockée |
|---|---|
| Continue | 0 |
| 10 minutes | 10 |
| 30 minutes | 30 |
| 1 heure | 60 |
| 4 heures | 240 |
| 8 heures | 480 |
| 12 heures | 720 |
| 1 jour | 1440 |
| 2 jours | 2880 |
| 3 jours | 4320 |
| 4 jours | 5760 |
| 5 jours | 7200 |
| 6 jours | 8640 |
| 1 semaine | 10080 |
| 2 semaines | 20160 |
| 3 semaines | 30240 |
| 4 semaines | 40320 |
| 5 semaines | 50400 |
| 6 semaines | 60480 |
| 7 semaines | 70560 |
| Infini | 4294967295 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers] ; Options (en utiliser une seule) ; Continue "PruningInterval"=dword:00000000 ; 10 minutes "PruningInterval"=dword:0000000a ; 30 minutes "PruningInterval"=dword:0000001e ; 1 heure "PruningInterval"=dword:0000003c ; 4 heures "PruningInterval"=dword:000000f0 ; 8 heures "PruningInterval"=dword:000001e0 ; 12 heures "PruningInterval"=dword:000002d0 ; 1 jour "PruningInterval"=dword:000005a0 ; 2 jours "PruningInterval"=dword:00000b40 ; 3 jours "PruningInterval"=dword:000010e0 ; 4 jours "PruningInterval"=dword:00001680 ; 5 jours "PruningInterval"=dword:00001c20 ; 6 jours "PruningInterval"=dword:000021c0 ; 1 semaine "PruningInterval"=dword:00002760 ; 2 semaines "PruningInterval"=dword:00004ec0 ; 3 semaines "PruningInterval"=dword:00007620 ; 4 semaines "PruningInterval"=dword:00009d80 ; 5 semaines "PruningInterval"=dword:0000c4e0 ; 6 semaines "PruningInterval"=dword:0000ec40 ; 7 semaines "PruningInterval"=dword:000113a0 ; Infini "PruningInterval"=dword:ffffffff
CMD
:: Options (en utiliser une seule) :: Continue reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 0 /f :: 10 minutes reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 10 /f :: 30 minutes reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 30 /f :: 1 heure reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 60 /f :: 4 heures reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 240 /f :: 8 heures reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 480 /f :: 12 heures reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 720 /f :: 1 jour reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 1440 /f :: 2 jours reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 2880 /f :: 3 jours reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 4320 /f :: 4 jours reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 5760 /f :: 5 jours reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 7200 /f :: 6 jours reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 8640 /f :: 1 semaine reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 10080 /f :: 2 semaines reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 20160 /f :: 3 semaines reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 30240 /f :: 4 semaines reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 40320 /f :: 5 semaines reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 50400 /f :: 6 semaines reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 60480 /f :: 7 semaines reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 70560 /f :: Infini reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 4294967295 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null # Options (en utiliser une seule) # Continue New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 0 -Force | Out-Null # 10 minutes New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 10 -Force | Out-Null # 30 minutes New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 30 -Force | Out-Null # 1 heure New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 60 -Force | Out-Null # 4 heures New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 240 -Force | Out-Null # 8 heures New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 480 -Force | Out-Null # 12 heures New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 720 -Force | Out-Null # 1 jour New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 1440 -Force | Out-Null # 2 jours New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 2880 -Force | Out-Null # 3 jours New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 4320 -Force | Out-Null # 4 jours New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 5760 -Force | Out-Null # 5 jours New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 7200 -Force | Out-Null # 6 jours New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 8640 -Force | Out-Null # 1 semaine New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 10080 -Force | Out-Null # 2 semaines New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 20160 -Force | Out-Null # 3 semaines New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 30240 -Force | Out-Null # 4 semaines New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 40320 -Force | Out-Null # 5 semaines New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 50400 -Force | Out-Null # 6 semaines New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 60480 -Force | Out-Null # 7 semaines New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 70560 -Force | Out-Null # Infini New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 4294967295 -Force | Out-Null