Jump to content

Problem reading registry key


Mahbub
 Share

Recommended Posts

Hi All,

I am using XP-SP2, Version 2002. I have written one script (vbscript) to read the registry key "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Disable Script Debugger". The problem is, if it is already set to "yes" it's returning "no" and also modifying the key value to "no". But while it's value is "no" it returns same e.g. "no" only. How can I read this key.

Link to comment
Share on other sites

Perhaps I've got your intentions wrong but why are you writing a script to disable script debugger in IE?

Script debugging can be disabled/enabled in Advanced Internet Options in the Tools menu in IE.

Link to comment
Share on other sites

I'm not a VB Scripter but I looked up an example script on reading registry values and made this up and it works for me. Of coarse you must have that key in your registry.

Option Explicit
Dim objShell
Dim strYesORNo, strIEScriptDebug

strYesORNo = "Disable Script Debugger"


strIEScriptDebug = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\"

Set objShell = CreateObject("WScript.Shell")

strYesORNo = objShell.RegRead(strIEScriptDebug & strYesORNo)

Wscript.Echo "Disable Script Debugger = " & strYesORNo

WScript.Quit

Link to comment
Share on other sites

I want the same as because I am trying to write a SupportAction which does everything programmatically. I have already written vbscript code to read the registry key "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Disable Script Debugger". The funny thing is that the value of this key modifies automatically to "no" if the previous value is "yes". But the reverse is not happening. This behaviour also varies from system to system. I am using XP-SP2, Version 2002. I have tested the same in XP-SP2, Version : 2149, there is no problem in that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy