Tentative de nettoyage d’Active Directory : valeur de Registre PruningRetriesOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Printers
- ID de stratégie
- PruningRetries
- É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
PruningRetries
REG_DWORDOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Printers Clé actuelle
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Tentatives :
| Entrée | Valeur stockée |
|---|---|
| Pas de nouvelle tentative | 0 |
| 1 tentative | 1 |
| 2 tentatives | 2 |
| 3 tentatives | 3 |
| 4 tentatives | 4 |
| 5 tentatives | 5 |
| 6 tentatives | 6 |
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) ; Pas de nouvelle tentative "PruningRetries"=dword:00000000 ; 1 tentative "PruningRetries"=dword:00000001 ; 2 tentatives "PruningRetries"=dword:00000002 ; 3 tentatives "PruningRetries"=dword:00000003 ; 4 tentatives "PruningRetries"=dword:00000004 ; 5 tentatives "PruningRetries"=dword:00000005 ; 6 tentatives "PruningRetries"=dword:00000006
CMD
:: Options (en utiliser une seule) :: Pas de nouvelle tentative reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 0 /f :: 1 tentative reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 1 /f :: 2 tentatives reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 2 /f :: 3 tentatives reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 3 /f :: 4 tentatives reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 4 /f :: 5 tentatives reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 5 /f :: 6 tentatives reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningRetries" /t REG_DWORD /d 6 /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) # Pas de nouvelle tentative New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 0 -Force | Out-Null # 1 tentative New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 1 -Force | Out-Null # 2 tentatives New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 2 -Force | Out-Null # 3 tentatives New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 3 -Force | Out-Null # 4 tentatives New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 4 -Force | Out-Null # 5 tentatives New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 5 -Force | Out-Null # 6 tentatives New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningRetries' -PropertyType DWord -Value 6 -Force | Out-Null