Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

註冊表被惡意鎖定?三招解鎖恢復系統管理權限

編輯:Windows XP 系統介紹

瀏覽惡意網頁後導致 IE 首頁被篡改、註冊表編輯器被禁用。本文提供三種不同層級的解鎖方案,從註冊表文件導入到組策略修改,總有一款適合你。

方案一:註冊表文件導入法(最快)

新建文本文件,命名 UnlockReg.reg,內容如下:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableRegistryTools"=dword:00000000

雙擊導入,提示成功即可打開 regedit。

方案二:HTA 腳本繞過限制

利用 mshta.exe 執行嵌入 VBScript 的 HTML 應用程序,調用 WMI 修改註冊表權限。將以下代碼保存為 UnlockReg.hta 雙擊運行:

<html><head><title>解鎖註冊表</title></head>
<body>
<input type="button" value="解鎖註冊表" onclick="UnlockReg">
<script language="VBScript">
Sub UnlockReg
  Set oShell = CreateObject("WScript.Shell")
  oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools", 0, "REG_DWORD"
  MsgBox "註冊表已解鎖!"
End Sub
</script>
</body></html>

方案三:組策略編輯器(適用域/企業環境)

  1. 運行 gpedit.msc
  2. 展開:用戶配置 → 管理模板 → 系統
  3. 雙擊「阻止訪問註冊表編輯工具」,選「已禁用」,確定

三招覆蓋從家庭版到企業版的各種鎖定場景,建議收藏備用。

Copyright © Windows教程網 All Rights Reserved