Sign in to follow this  
Followers 0
rvbfreak

WMI Proxy Not Working

1 post in this topic

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?

Share this post


Link to post
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
Sign in to follow this  
Followers 0