Jump to content

Script to Enable\Disable Registory tools


Rahul Rohela
 Share

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")
Else
    RegWrite ("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistryTools","REG_DWORD",1)
    MSGBOX (0,"Status","Registry Editing Tools are now Disabled")
Endif
Edited by Rahul Rohela
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...