zoukankan      html  css  js  c++  java
  • 注册表-禁用与解开注册表5种方法

    =========================禁止============================

    REGEDIT4

    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]

    "DisableRegistryTools"=dword:00000001 

    =========================解开=========================== 

    DOS解法--------------------------------

    regedit/d HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem 

     

    HTM解法---------------------------------

    <html>
    <body>
    <script language="JavaScript">
    var shl=new ActiveXObject("Wscript.shell");
    shl.RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools",0, "REG_DWORD");
    window.alert("你的注册表编辑器已解除禁用!")
    </script>
    </body>
    </html>


    inf解法--------------------------------

    [Version]
    Signature="$Chicago$"

    [DefaultInstall]
    DelReg=DeleteMe

    [DeleteMe]
    HKCU,"SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem","DisableRegistryTools"


    JS解法------------------------------------

    var WSHShell=WScript.CreateObject("WScript.Shell");

    WSHShell.RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DiableRegistryTools",0,"REG_DWORD");

    WSHShell.RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\");


    vbs解法------------------------------------

    Dim WSHShell
    Set WSHShell=WScript.CreateObject("WScript.Shell")

    WSHShell.RegDelete "HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem"


    注册表解法--------------------------------

    ①把下面文件复制到记事本上,保存为扩展名为reg的文件!
    REGEDIT4
    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
    "DisableRegistryTools"=dword:00000000
    ②把下面文件复制到记事本上,保存为扩展名为reg的文件!
    REGEDIT4
    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
    "DisableRegistryTools"=-
    ③把下面文件复制到记事本上,保存为扩展名为reg的文件!
    REGEDIT4
    [-HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]

     

    PS:本人做实验时发现注册表的方法不能用。

  • 相关阅读:
    一次线上问题引发的对于C#中相等判断的思考
    Node中的模块引入机制
    Node 各个版本支持ES2015特性的网站
    使用Chrome 中的 ssh 插件登陆 linux 服务器
    vmWare 虚机文件不能启动的事故处理
    JaveScript 中使用 XSLT转换XML文档
    浏览器上的坐标体系相关概念(客户区,页面,屏幕)
    visual Studio 中使用正则表达式来进行查找替换
    JavaScript 执行环境及作用域
    Laravel save部分字段失效的bug问题解决
  • 原文地址:https://www.cnblogs.com/FKdelphi/p/4664914.html
Copyright © 2011-2022 走看看