Jump to content
Sign in to follow this  
rvbfreak

WMI Proxy Not Working

Recommended Posts

rvbfreak

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  

×

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.