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:本人做实验时发现注册表的方法不能用。

  • 相关阅读:
    关于 MySQL int tinyint 类型的那点事
    PHP日期、时间戳相关的小程序
    [leedcode 236] Lowest Common Ancestor of a Binary Tree
    [leedcode 235] Lowest Common Ancestor of a Binary Search Tree
    [leedcode 234] Palindrome Linked List
    [leedcode 233] Number of Digit One
    [leedcode 232] Implement Queue using Stacks
    [leedcode 231] Power of Two
    [leedcode 230] Kth Smallest Element in a BST
    [leedcode 229] Majority Element II
  • 原文地址:https://www.cnblogs.com/FKdelphi/p/4664914.html
Copyright © 2011-2022 走看看