Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proxy script for off site laptops

Status
Not open for further replies.

stubnski

MIS
Nov 17, 2005
403
US
Hi everyone,

We are currently forcing proxy and graying out the checkbox to uncheck proxy settings through GP.

Is there a script or some other way besides unchecking the check box in internet options --> connections --> lan settings that a user can either double click or the laptop will automatically update if the machine is not plugged into my work's network. So a summary is - I want to be able to have the user access the internet off site but our current proxy settings will not allow it. Thanks for any help


Stubnski
 
There is a software called proxypal and then i just place a shortcut on the desktop. It enables and disables the proxy
 
Networkadmin404,

Thanks for the info. I went ahead and made a batch script that hacks the registry to disable proxy. GP will turn it back on when they come back on to the internal network. Thanks


Stubnski
 
Just occurred to me I didn't give my solution so here it is -
I created two files one named ProxyOff.reg and the other ProxyOff.bat. I put ProxyOff.bat on the All User desktop and the user double clicks it to turn the proxy off when they are not on the network. GP will then turn it back on when they reconnect. Here is the script I used. I'm sure there is a much better solution than what I came up with.

ProxyOff.bat -
regedit.exe /s c:\windows\ProxyOff.reg

ProxyOff.reg -

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000000


Stubnski

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top