Script to change proxy and release/renew IP?
osaddict
London, UK
As part of our 'disaster recovery plan' @ work sometimes we need to switch connections - this involves moving to a shared connection, and bypassing our server... as such we need all the clients to have new IPs - at present done manually with /release /renew ipconfig in cmd.
Firstly I wanted to write something to automate this - my very limited knowledge of 'scripting' tells me this would be a simplistic batch script.
Secondly - Internet Explorer and Firefox are both configured to use proxy's too.
So.. is there any way to remove the proxy in IE - this is the important case as outlook and other windows things rely on this setting...
Doing this and the ipconfig together would obviously be ideal, but if it was a 2 stage process it would be ok...
Anyone got any ideas?
Firstly I wanted to write something to automate this - my very limited knowledge of 'scripting' tells me this would be a simplistic batch script.
Secondly - Internet Explorer and Firefox are both configured to use proxy's too.
So.. is there any way to remove the proxy in IE - this is the important case as outlook and other windows things rely on this setting...
Doing this and the ipconfig together would obviously be ideal, but if it was a 2 stage process it would be ok...
Anyone got any ideas?
0
Comments
start - run -> disable_proxy
And you will have your proxy disabled, and your IP released/renewed. Proxy enabled, IP released/renewed with enable_proxy.
For some reason yours did this the first time but then when I ran it again it worked with IE open, oddness!
Thanks thrax - that seems to do the job
Fingers crossed it wont get much use - if it does it means our Internet connections knackered!
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/taskkill.mspx?mfr=true