防止存取登錄編輯工具 的登錄值 DisableRegistryTools使用者HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System

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

登錄

DisableRegistryTools

REG_DWORD使用者
啟用時的值
取決於選項值
元素
停用以無訊息方式執行 regedit?
選項
項目儲存的值
是2
否1
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; 選項 (只使用其中一個)
; 是
"DisableRegistryTools"=dword:00000002
; 否
"DisableRegistryTools"=dword:00000001
CMD
:: 選項 (只使用其中一個)

:: 是
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableRegistryTools" /t REG_DWORD /d 2 /f
:: 否
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableRegistryTools" /t REG_DWORD /d 1 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# 選項 (只使用其中一個)
# 是
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'DisableRegistryTools' -PropertyType DWord -Value 2 -Force | Out-Null
# 否
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'DisableRegistryTools' -PropertyType DWord -Value 1 -Force | Out-Null