Jump to content

Script to Enable\Disable Registory tools

Recommended Posts

Here is the simple script to enable/disable Registry tools.

$var = RegRead("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistryTools")

If $var = 1 Then
    RegWrite ("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistryTools","REG_DWORD",0)
    MSGBOX (0,"Status","Registry Editing Tools are now Enabled")
    RegWrite ("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistryTools","REG_DWORD",1)
    MSGBOX (0,"Status","Registry Editing Tools are now Disabled")
Edited by Rahul Rohela
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...