|
|
#1 (permalink) |
|
New Member
![]() Join Date: Feb 2008
Posts: 6
|
Hi all, I am looking to write two scripts to enable and disable my proxy settings. When I'm at work I need to use a proxy server, when I'm at home I have to manually untick the "use a proxy server" option. I've wrote the script to enable using the proxy server and put in the correct settings :
set WSHShell = WScript.CreateObject("WScript.Shell") WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Internet Settings\ProxyServer", "proxyname:port" WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD" WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Internet Settings\ProxyOverride", "<local>" I can't however work out how to write the script to untick the box and remove all proxy settings, I've tried so many different things and nothing seems to work. Can anyone help me please cause im getting really frustrated now! Cheers, Andy |
|
|
|
|
|
#3 (permalink) |
|
Platinum Member
![]() Join Date: Mar 2005
Location: WA,USA
Posts: 845
|
all i can say is look around for regedit scripting tutorials. IM not familar with the subject.
btw proxy servers are evil here
__________________
All removed by apj101 as related to hacking which is against forum rules apj101 didn't read them ... |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help please! | wiwazevedo | General Software | 8 | 02-22-2008 08:45 PM |
| Server 101? | brycematheson712 | Computer Networking and Servers | 13 | 03-26-2007 09:50 PM |
| Excelent scripts | rejavu | Internet Discussion | 0 | 12-17-2006 10:52 PM |
| Proxy servers | The Astroman | Internet Discussion | 8 | 03-22-2006 08:52 PM |
| wireless connection fails after spyware removal | mikekelly | Laptop and Handheld Computers | 5 | 08-27-2005 06:37 PM |