I would create a batch file that runs a registry entry that removes the proxy when the user is offsite. Group policy will take priority in the office and override any other settings. :o)
Create the following batch file:
@echo off
regedit /s c:\proxy.reg
exit
Or if you want to be clever and do this automatically then put a read only text file in a shared drive on the server and put some random text in it. Call it for example h:\proxycheck.txt
and make your batch file read:
@echo off
if exist h:\proxycheck.txt goto office else goto away
:away
regedit /s c:\proxy.reg
exit
:office
echo proxy ok
exit
Then, on a normal machine (without the group policy in effect) run regedit and go to the following key:
HKCU/software/microsoft/wi
highlight that hive and export it (only the selected branch) to c:\proxy.reg
Close regedit and open that file in notepad.
Leave the first two lines:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Softwar
and delete everything else except:
"ProxyEnable"=dword:000000
Make sure it says 00000000
That turns off the proxy. Save the file and exit. Copy that file to the c: drive of the laptop in question.
Copy the batch file above to the c: drive and create a scheduled task to run the batch file every 5 minutes.
If you dont want it automated then put a shortcut to the batch file on the desktop and tell the user to run it when they log on out of the office.
Main Topics
Browse All Topics





by: AicoPosted on 2007-12-04 at 01:09:47ID: 20401681
You could try setting the Local Security Policy setting. Maybe when the machine doesn't detect the domain it reverts back to the Local Security Policy, but I'm not sure about that.