ComputerForum.com ComputerForum.com  
TigerDirect
 
Go Back   Computer Forum > Computer Software > General Software

Reply
 
LinkBack Thread Tools Display Modes
Old 03-06-2008, 09:48 AM   #1 (permalink)
New Member
 
Join Date: Feb 2008
Posts: 6
Default Script to disable proxy settings

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
Abington is offline   Reply With Quote


Old 03-10-2008, 08:37 AM   #2 (permalink)
New Member
 
Join Date: Feb 2008
Posts: 6
Default

Can anyone help?
Abington is offline   Reply With Quote
Old 03-10-2008, 08:59 AM   #3 (permalink)
Platinum Member
 
diroga's Avatar
 
Join Date: Mar 2005
Location: WA,USA
Posts: 845
Default

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 ...
diroga is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +1. The time now is 05:43 AM.


Powered by: vBulletin Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Copyright © 2002-2007 Computer Forum and Web Design Forum