Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win7 註冊表如何鎖定與解鎖?防止被錯誤修改的群組原則與註冊表雙重保護

編輯:關於 Windows

為避免註冊表被誤修改或他人竄改,可鎖定註冊表:

1. 群組原則鎖定 (推薦)

  1. Win+R 輸入 gpedit.msc 開啟群組原則。
  2. 依序展開:用戶設定 → 管理範本 → 系統。
  3. 找到「防止存取登錄編輯工具」 → 設為「已啟用」 → 確定。

2. 註冊表直接鎖定

開啟註冊表,定位 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System,新建/修改 DisableRegistryTools DWORD 值為 1 (禁止) 或 2 (僅禁止編輯器),前面七個 0 可省略。

解鎖方法

  1. 群組原則:同路徑將「防止存取登錄編輯工具」設為「已停用」。
  2. DOS 指令解鎖:製作 unlock.reg 內容:
    REGEDIT4
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    "DisableRegistryTools"=dword:00000000

    以管理員身分在 CMD 執行 reg import unlock.reg (需含路徑)。
  3. 或直接刪除 System 鍵值 (乾淨系統本無此資訊)。

REG 檔格式:首行 REGEDIT4 (Win95/98/ME/NT4) 或 Windows Registry Editor Version 5.00 (Win2000/XP);鍵值用 [] 包裹;字串用雙引號;DWORD 0 為 dword:00000000;多條鍵值間空行分隔;刪除鍵值在前面加 -。

Copyright © Windows教程網 All Rights Reserved