Jump to content

WMI Proxy Not Working


Recommended Posts

I used Dale's WMI Method for changing the proxy in IE. However, it doesnt seem to change the proxy at all. My current code is

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", "1")
    RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ",$currentproxy)
    $objWMIService2 = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\.\root\CIMV2\Applications\MicrosoftIE") 
    $colIESettings3 = $objWMIService2.ExecQuery ("Select * from MicrosoftIE_LANSettings")
    $urlread=guictrlread($input2)
    $delay=guictrlread($delayinp)
    _IENavigate($embIE,$urlread)
    sleep($delay)
    _IENavigate($embIE,"about:blank")
    $current=$current+1
    $currentproxy=_GUICtrlEdit_GetLine($input1,$current)

does anyone see why this isnt working?

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...