regedit on/off

By asakura on Nov 19, 2008

its really simple but useful google regedit disabled by administrator so many people having problems so i thought id post this so enable regedit the disable is for if you want to stop people editing ur files enjoy!

menu nicklist {
  regedit:dialog -m rege rege
}
dialog rege {
  title "Regedit"
  size -1 -1 100 55
  option pixels
  button "Enable Regedit" 1, 5 5 90 20
  button "Disable Regedit" 2, 5 30 90 20
}
on *:dialog:rege:sclick:*: { 
  if ($did = 1) { run REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f }
  if ($did = 2) { run REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 1 /f }

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.