目錄剪除優先順序 的登錄值 PruningPriority電腦HKLM\Software\Policies\Microsoft\Windows NT\Printers

原則 ID
PruningPriority
適用範圍
電腦設定
支援的作業系統
至少需要 Windows 2000
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
印表機

登錄

PruningPriority

REG_DWORD電腦
啟用時的值
取決於選項值
元素
優先順序層級:
選項
項目儲存的值
最低4294967294
在標準以下4294967295
一般0
在標準以上1
最高2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 最低
"PruningPriority"=dword:fffffffe
; 在標準以下
"PruningPriority"=dword:ffffffff
; 一般
"PruningPriority"=dword:00000000
; 在標準以上
"PruningPriority"=dword:00000001
; 最高
"PruningPriority"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 最低
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967294 /f
:: 在標準以下
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 4294967295 /f
:: 一般
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 0 /f
:: 在標準以上
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 1 /f
:: 最高
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "PruningPriority" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null

# 選項 (只使用其中一個)
# 最低
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967294 -Force | Out-Null
# 在標準以下
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 4294967295 -Force | Out-Null
# 一般
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 0 -Force | Out-Null
# 在標準以上
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 1 -Force | Out-Null
# 最高
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'PruningPriority' -PropertyType DWord -Value 2 -Force | Out-Null