Proxy Server reset

G

Guest

At work I set a proxy server using a .reg file. I sometimes forget to remove
the proxy server settings before giving the computer back to the customer.
Is there any "easy" way to delete the proxy server settings automatically?

I've been fussing around with a batch file for this, but I get errors when
trying to turn the proxy on. I'd really like a .reg file that will:
1) Turn the proxy on, and
2) Remove the proxy on the next reboot.

Here's the .reg files that I'm using:
------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="xxx.xxx.xxx.xxx:8080"

------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:0000000
"ProxyServer"=""
------------------------------------------
 
3

3c273

You could use your "proxy_enable.reg" file to load the "run once" key here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
with something like "regedit /s proxy_disable.reg" (I hope that makes sense)
Louis
 
G

Guest

I'm trying to write a batch file to:
1) Turn the proxy on with a .reg file
2) Add the proxy off to the RunOnce key.

I keep getting errors when trying to run the batch file. It won't run the
ProxyOn.reg file (which runs fine when it's double clicked on). I was
browsing around and found a difference in how the backslash keys were used in
the .reg file (some are double backslashes rather than single backslashes).

Any ideas on how to fix that?

Thanks for the help!

- John

3c273 said:
You could use your "proxy_enable.reg" file to load the "run once" key here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
with something like "regedit /s proxy_disable.reg" (I hope that makes sense)
Louis

C1SG said:
At work I set a proxy server using a .reg file. I sometimes forget to remove
the proxy server settings before giving the computer back to the customer.
Is there any "easy" way to delete the proxy server settings automatically?

I've been fussing around with a batch file for this, but I get errors when
trying to turn the proxy on. I'd really like a .reg file that will:
1) Turn the proxy on, and
2) Remove the proxy on the next reboot.

Here's the .reg files that I'm using:
------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="xxx.xxx.xxx.xxx:8080"

------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:0000000
"ProxyServer"=""
 
3

3c273

I've been on vacation did you get this sorted out yet?
Louis

C1SG said:
I'm trying to write a batch file to:
1) Turn the proxy on with a .reg file
2) Add the proxy off to the RunOnce key.

I keep getting errors when trying to run the batch file. It won't run the
ProxyOn.reg file (which runs fine when it's double clicked on). I was
browsing around and found a difference in how the backslash keys were used in
the .reg file (some are double backslashes rather than single backslashes).

Any ideas on how to fix that?

Thanks for the help!

- John

3c273 said:
You could use your "proxy_enable.reg" file to load the "run once" key here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
with something like "regedit /s proxy_disable.reg" (I hope that makes sense)
Louis

C1SG said:
At work I set a proxy server using a .reg file. I sometimes forget to remove
the proxy server settings before giving the computer back to the customer.
Is there any "easy" way to delete the proxy server settings automatically?

I've been fussing around with a batch file for this, but I get errors when
trying to turn the proxy on. I'd really like a .reg file that will:
1) Turn the proxy on, and
2) Remove the proxy on the next reboot.

Here's the .reg files that I'm using:
------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="xxx.xxx.xxx.xxx:8080"

------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:0000000
"ProxyServer"=""
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top