管理佇列特定檔案的處理: 的登錄值 CopyFilesPolicy電腦HKLM\Software\Policies\Microsoft\Windows NT\Printers

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

登錄

CopyFilesPolicy

REG_DWORD電腦
啟用時的值
取決於選項值
元素
管理佇列特定檔案的處理:
選項
項目儲存的值
不允許佇列特定檔案0
將佇列特定檔案限制為色彩設定檔1
允許所有佇列特定檔案2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 不允許佇列特定檔案
"CopyFilesPolicy"=dword:00000000
; 將佇列特定檔案限制為色彩設定檔
"CopyFilesPolicy"=dword:00000001
; 允許所有佇列特定檔案
"CopyFilesPolicy"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 不允許佇列特定檔案
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "CopyFilesPolicy" /t REG_DWORD /d 0 /f
:: 將佇列特定檔案限制為色彩設定檔
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "CopyFilesPolicy" /t REG_DWORD /d 1 /f
:: 允許所有佇列特定檔案
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "CopyFilesPolicy" /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 'CopyFilesPolicy' -PropertyType DWord -Value 0 -Force | Out-Null
# 將佇列特定檔案限制為色彩設定檔
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'CopyFilesPolicy' -PropertyType DWord -Value 1 -Force | Out-Null
# 允許所有佇列特定檔案
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'CopyFilesPolicy' -PropertyType DWord -Value 2 -Force | Out-Null