瀏覽惡意網頁後導致 IE 首頁被篡改、註冊表編輯器被禁用。本文提供三種不同層級的解鎖方案,從註冊表文件導入到組策略修改,總有一款適合你。
新建文本文件,命名 UnlockReg.reg,內容如下:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] "DisableRegistryTools"=dword:00000000
雙擊導入,提示成功即可打開 regedit。
利用 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>
gpedit.msc三招覆蓋從家庭版到企業版的各種鎖定場景,建議收藏備用。