To post new answers or open threads, you need to log in. The registration is closed now, sorry. If you are not a member, you are welcome to read the posted content without any limitations. If you have any DAEMON Tools related question, contact our support team.
Announcement
Collapse
No announcement yet.
Registry Editing disabled by computer administrator
Save the following as a vbs file (registryfix.vbs or similar)
then run it... it will toggle registry editing on and off....
Code:
[FONT=Courier New][SIZE=-1]Option Explicit
'Declare variables
Dim WSHShell, n, MyBox, p, t, mustboot, errnum, vers
Dim enab, disab, jobfunc, itemtype[/SIZE][/FONT]
[FONT=Courier New][SIZE=-1]Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
p = p & "DisableRegistryTools"
itemtype = "REG_DWORD"
mustboot = "Log off and back on, or restart your pc to" & vbCR & "effect the changes"
enab = "ENABLED"
disab = "DISABLED"
jobfunc = "Registry Editing Tools are now "[/SIZE][/FONT]
[FONT=Courier New][SIZE=-1]'This section tries to read the registry key value. If not present an
'error is generated. Normal error return should be 0 if value is
'present
t = "Confirmation"
Err.Clear
On Error Resume Next
n = WSHShell.RegRead (p)
On Error Goto 0
errnum = Err.Number[/SIZE][/FONT]
[FONT=Courier New][SIZE=-1]if errnum <> 0 then
'Create the registry key value for DisableRegistryTools with value 0
WSHShell.RegWrite p, 0, itemtype
End If[/SIZE][/FONT]
[FONT=Courier New][SIZE=-1]'If the key is present, or was created, it is toggled[/SIZE][/FONT]
[FONT=Courier New][SIZE=-1]'Confirmations can be disabled by commenting out
'the two MyBox lines below[/SIZE][/FONT]
[FONT=Courier New][SIZE=-1]If n = 0 Then
n = 1
WSHShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)
ElseIf n = 1 then
n = 0
WSHShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)
End If[/SIZE][/FONT]
[FONT=Courier New][SIZE=-1][/SIZE][/FONT]
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment