Verzeichnislöschintervall: Registrierungswert PruningIntervalComputerHKLM\Software\Policies\Microsoft\Windows NT\Printers

Richtlinien-ID
PruningInterval
Bereich
Computerkonfiguration
Unterstützt unter
Mindestens Windows 2000
Quelle
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
Kategorie
Drucker

Registrierung

PruningInterval

REG_DWORDComputer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
Intervall:
Optionen
EintragGespeicherter Wert
Fortlaufend0
10 Minuten10
30 Minuten30
1 Stunde60
4 Stunden240
8 Stunden480
12 Stunden720
1 Tag1440
2 Tage2880
3 Tage4320
4 Tage5760
5 Tage7200
6 Tage8640
1 Woche10080
2 Wochen20160
3 Wochen30240
4 Wochen40320
5 Wochen50400
6 Wochen60480
7 Wochen70560
Unendlich4294967295
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

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

; Optionen (nur eine verwenden)
; Fortlaufend
"PruningInterval"=dword:00000000
; 10 Minuten
"PruningInterval"=dword:0000000a
; 30 Minuten
"PruningInterval"=dword:0000001e
; 1 Stunde
"PruningInterval"=dword:0000003c
; 4 Stunden
"PruningInterval"=dword:000000f0
; 8 Stunden
"PruningInterval"=dword:000001e0
; 12 Stunden
"PruningInterval"=dword:000002d0
; 1 Tag
"PruningInterval"=dword:000005a0
; 2 Tage
"PruningInterval"=dword:00000b40
; 3 Tage
"PruningInterval"=dword:000010e0
; 4 Tage
"PruningInterval"=dword:00001680
; 5 Tage
"PruningInterval"=dword:00001c20
; 6 Tage
"PruningInterval"=dword:000021c0
; 1 Woche
"PruningInterval"=dword:00002760
; 2 Wochen
"PruningInterval"=dword:00004ec0
; 3 Wochen
"PruningInterval"=dword:00007620
; 4 Wochen
"PruningInterval"=dword:00009d80
; 5 Wochen
"PruningInterval"=dword:0000c4e0
; 6 Wochen
"PruningInterval"=dword:0000ec40
; 7 Wochen
"PruningInterval"=dword:000113a0
; Unendlich
"PruningInterval"=dword:ffffffff
CMD
:: Optionen (nur eine verwenden)

:: Fortlaufend
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 0 /f
:: 10 Minuten
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 10 /f
:: 30 Minuten
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 30 /f
:: 1 Stunde
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 60 /f
:: 4 Stunden
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 240 /f
:: 8 Stunden
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 480 /f
:: 12 Stunden
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 720 /f
:: 1 Tag
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 1440 /f
:: 2 Tage
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 2880 /f
:: 3 Tage
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 4320 /f
:: 4 Tage
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 5760 /f
:: 5 Tage
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 7200 /f
:: 6 Tage
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 8640 /f
:: 1 Woche
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 10080 /f
:: 2 Wochen
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 20160 /f
:: 3 Wochen
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 30240 /f
:: 4 Wochen
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 40320 /f
:: 5 Wochen
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 50400 /f
:: 6 Wochen
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 60480 /f
:: 7 Wochen
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 70560 /f
:: Unendlich
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningInterval" /t REG_DWORD /d 4294967295 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null

# Optionen (nur eine verwenden)
# Fortlaufend
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 0 -Force | Out-Null
# 10 Minuten
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 10 -Force | Out-Null
# 30 Minuten
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 30 -Force | Out-Null
# 1 Stunde
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 60 -Force | Out-Null
# 4 Stunden
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 240 -Force | Out-Null
# 8 Stunden
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 480 -Force | Out-Null
# 12 Stunden
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 720 -Force | Out-Null
# 1 Tag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 1440 -Force | Out-Null
# 2 Tage
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 2880 -Force | Out-Null
# 3 Tage
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 4320 -Force | Out-Null
# 4 Tage
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 5760 -Force | Out-Null
# 5 Tage
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 7200 -Force | Out-Null
# 6 Tage
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 8640 -Force | Out-Null
# 1 Woche
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 10080 -Force | Out-Null
# 2 Wochen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 20160 -Force | Out-Null
# 3 Wochen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 30240 -Force | Out-Null
# 4 Wochen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 40320 -Force | Out-Null
# 5 Wochen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 50400 -Force | Out-Null
# 6 Wochen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 60480 -Force | Out-Null
# 7 Wochen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 70560 -Force | Out-Null
# Unendlich
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningInterval' -PropertyType DWord -Value 4294967295 -Force | Out-Null