Jump to content

Recommended Posts

Posted

Hello all,

 

Due to popular demand I've created a menu driven tool which will easily enable or disable proxy settings on Windows 2000/XP/2003 running IE6 or IE7. I haven't tried it on Vista, however if someone could try, it'd be much appreciated.

 

I regularly get told that users cannot connect to the net at home and 9 times out of 10 it is because of proxy settings. Please note this pack will not overwrite enforced GPOs by administrators, but only on notebooks (for example) away from the network in a standalone environment.

 

You can download the pack here and download anywhere to your computer. Running the pack will extract it to C:\ProxySettings and will automatically start the menu. The rest is self explanatory. A desktop shortcut is also automatically created.

 

The proxy settings will be changed to "eduproxy.bgfl.org:80". I can create other packs for other LAs. Just let me know what your proxy and port is.

 

TIA ;)

  • Thanks 4
Posted
Nice little app gecko. I suppose the only downside is it needs installing whereas my pack just runs. Having the app constantly running is another disadvantage, depending how much memory it consumes!
Posted (edited)

I made something similar, but you just run a shortcut that is on the desktop. run once & it tells you that the proxy is set, run again & you are told the proxy is removed. Basically it is just a single .reg file that is installed to the registry.

It will only work on XP or older systems, as Windows Vista requires authorization to make changes to the registry. There is a way around this, but not a good idea for teachers laptops, as it will always allow changes. I just need to find a way around this.

Michael, I suspect you would have the same issues with Vista as I am having, as I can see you are using .reg files also. If I find a solution I will let you know.

Also the shortcut won't install to the desktop as Vista uses a different directory structure for the user desktop folder.

I looked at ProxyChanger, but didn't like it. It would confuse our teachers.:)

Edited by kestrel1
Posted

Yes you're absolutely right kestrel1. Creating a desktop shortcut shouldn't be the problem. I'm guessing Vista uses a different variable for C:\Users\ instead of %ALLUSERSPROFILE%\Desktop for C:\Documents and Settings\All Users\Desktop

 

As for entering registry entries into Vista, I've never tried and I suspect it's the UAC that's blocking that. I don't know of a way to run reg files silently on Vista.

Posted
Michael, yes it is the UAC, this can be turned off but is not a good idea. I will look at the desktop shortcut problem when I next get a chance to look at a Vista machine. I am looking into running reg files silently on Vista as well.
Posted

Michael, I made an error. Just got access to a Vista machine. Your install goes on to a Vista machine & will run, because .reg files are caught by the UAC & you have to give permission. The only thing it doesn't do is add an icon to everyones desktop.

My error was, my install uses a VBscript & this will run, but do nothing because it is not caught by the UAC. Still working on that.

If I find a solution to the desktop icon I will post it.

Posted (edited)

Just a bit more info on the Vista problem, Although the reg files run & change the settings, IE7 doesn't always recognize the fact & continues to use the original settings.

Say you want to disable the proxy.

The Registry is physically changed, but the settings do not change for IE7. It still uses the proxy. A logoff/login sorts it out, but is annoying. I have now found this is what is happening with my VBscript.

Just found the variable for the Public Desktop: %public%\Desktop

However you will get an access denied error unless you can run as administrator. Looking in to that now.

Edited by kestrel1
New info
Posted

I've written a small exe file which does this.

it uses the same principal (modifying the registry) but it is done without using .reg files. It will run in the system tray and changing to any number of different proxies using a simple text file.

It works on Vista too (as far as i can tell) and also notifies ie of a change so it should work with open browsers too.

 

(Although this has been tested on several machines there may still be bugs so use at your own risk, but please tell me so i can fix them! :))

 

iProxy.exe

The program.

 

settings.ini

The proxies you wish to use in the form:

:;

eg. eduproxy.bgfl.org:80;BGFL Proxy

 

You can simply run iProxy.exe and it will read the proxies entered into settings.ini.

If you run iProxy.exe \\\netlogon\settings.ini (or wherever you place a settings file for everyone to use) it will attempt to read the settings from a central location and save them locally (as settings.ini). This allows you to update the settings easily if you need to change them. If it can't find the specified file it will attempt to read them from the local file. If it can't find them there either it will show an error message and quit.

iProxy.zip

  • Thanks 1
Posted
I've written a small exe file which does this.

it uses the same principal (modifying the registry) but it is done without using .reg files. It will run in the system tray and changing to any number of different proxies using a simple text file.

It works on Vista too (as far as i can tell) and also notifies ie of a change so it should work with open browsers too.

 

(Although this has been tested on several machines there may still be bugs so use at your own risk, but please tell me so i can fix them! :))

 

iProxy.exe

The program.

 

settings.ini

The proxies you wish to use in the form:

:;

eg. eduproxy.bgfl.org:80;BGFL Proxy

 

You can simply run iProxy.exe and it will read the proxies entered into settings.ini.

If you run iProxy.exe \\\netlogon\settings.ini (or wherever you place a settings file for everyone to use) it will attempt to read the settings from a central location and save them locally (as settings.ini). This allows you to update the settings easily if you need to change them. If it can't find the specified file it will attempt to read them from the local file. If it can't find them there either it will show an error message and quit.

 

downloaded the iProxy.exe in the zip file but was curious what if you wanted to set proxy over rides , like if you had a vle or local things you needed to get to ( ie if I was going to use this on my computer and wanted to be able to use the browser to remote into printers or whatever )

Posted
It doesn't do anything with the overides so if they are set on your machine they should stay. I might add that feature into the next version though. :)
Posted

I created a program using autoit.

 

It runs on startup looks for a 10. ip address or 192. and sets it accordingly without the need to restart IE.

 

Works a treat and prompts if neither Ips are detected.

 

Let me know if ya want the code

  • 2 weeks later...
Posted
I've written a small exe file which does this.

it uses the same principal (modifying the registry) but it is done without using .reg files. It will run in the system tray and changing to any number of different proxies using a simple text file.

It works on Vista too (as far as i can tell) and also notifies ie of a change so it should work with open browsers too.

 

Is there a way to add proxy exclusions to this as well?

Posted (edited)

I have added the exclusions to this now.

So now the settings file must be in the form:

:;;name

eg. eduproxy.bgfl.org:80;*.bgfl.org;Work

 

(Although this has been tested on several machines there may still be bugs so use at your own risk, but please tell me so i can fix them! )

iProxy.zip

Edited by bmdixon
  • 3 weeks later...
Posted

bmdixon:

iProxy is a nice little app, only one problem I have found is that if it is set as a scheduled task to run at system start, it works fine on Windows XP, but fails on Vista. It says that the settings.ini file needs to be in the same folder as the executable file. The settings.ini file is in the same folder as the iproxy.exe.

I have tried a few ways to get iproxy to run automatically at system start on Vista. I used a link to iproxy in the startup folder, which worked, but I wanted to create a file that would copy it into this folder, plus doing other stuff. I have been unable to get this to work at present, so thought I would try a scheduled task, but this is failing.

My old script works fine on XP, but I have been unable to get this working on Vista, so I took a look at iproxy & it works well on Vista, but I just need a way to get it to run at startup.

Hope this makes sense to someone.

Posted
bmdixon:

iProxy is a nice little app, only one problem I have found is that if it is set as a scheduled task to run at system start, it works fine on Windows XP, but fails on Vista. It says that the settings.ini file needs to be in the same folder as the executable file. The settings.ini file is in the same folder as the iproxy.exe.

I have tried a few ways to get iproxy to run automatically at system start on Vista. I used a link to iproxy in the startup folder, which worked, but I wanted to create a file that would copy it into this folder, plus doing other stuff. I have been unable to get this to work at present, so thought I would try a scheduled task, but this is failing.

My old script works fine on XP, but I have been unable to get this working on Vista, so I took a look at iproxy & it works well on Vista, but I just need a way to get it to run at startup.

Hope this makes sense to someone.

I'll take a look at this, i'm running Vista at home so can do some testing to find what the problem is. It could be something to do with permissions and UAC.

Glad to see people using it :), if you have any suggestions for improvements or find any bugs please do let me know.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...