mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Disable IE Proxy

Author Message
aru1683

  • Total Posts : 35
  • Scores: 0
  • Reward points : 0
  • Joined: 7/1/2007
  • Location: India
  • Status: offline
Disable IE Proxy Tuesday, February 09, 2010 6:10 PM (permalink)
0
The following script disables/enables Proxy (Checks/unchecks) proxy config
 
'HKEY_CURRENT_USER is represented by this value
'**********************************************
Const HKCU = &H80000001
'Local computer is represented by dot(.)
'**********************************************
strSystem = "."
'Binding WMI service-namespace and registry class (stdRegProv)
'*************************************************************
Set objRegEdit = GetObject("winmgmts:\\" & strSystem & "\root\default:StdRegProv")
'IE Path in the Registry
'*********************
strRegistryPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"
'Name of Key
'************
strKeyName = "ProxyEnable"
'Read the value of Proxy setting [enabled or disabled]
'*****************************************************
objRegEdit.GetDWORDValue HKCU,strRegistryPath,strKeyName,dbwv
'Check if it is Enabled
'**********************
if dbwv=1 then
 
 if msgbox("Disable proxy?",3,"IE_Proxy_Settings.vbs") = 6 then
  DWORDValue=0
  objRegEdit.SetDWORDValue HKCU, strRegistryPath, strKeyName, DWORDValue
  if err.number = 0 then
   msgbox "Proxy is disabled"
  else
   msgbox "Error in Disabling the proxy"
  end if
 
 end if
'Check if it is Disabled
'***********************
elseif dbwv=0 then
 
 if msgbox("Enable proxy?",3,"IE_Proxy_Settings.vbs") = 6 then
  DWORDValue=1
  objRegEdit.SetDWORDValue HKCU, strRegistryPath, strKeyName, DWORDValue
  if err.number = 0 then
   msgbox "Proxy is enabled"
  else
   msgbox "Error in enabling the proxy"
  end if
 end if
end if
'Destruct the object used
'************************
Set ObjRegEdit = Nothing
 
 
 
it works perfectly on IE 6, however it doesnt on IE7. Any suggestions ?
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.8
    mbt shoes www.wileywilson.com