Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 03-28-2007, 07:00 AM
C1SG
Newsgroup Contributor
 
Posts: n/a
Proxy Server reset

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\Curre ntVersion\Internet
Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="xxx.xxx.xxx.xxx:8080"

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

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 03-28-2007, 07:00 AM
  #2 (permalink)  
Old 03-28-2007, 09:45 AM
3c273
Newsgroup Contributor
 
Posts: n/a
Re: Proxy Server reset

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

"C1SG" <C1SG@discussions.microsoft.com> wrote in message
news:86D3B637-DD29-4B37-A1C6-F9E42214BD58@microsoft.com...
> 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\Curre ntVersion\Internet
> Settings]
> "ProxyEnable"=dword:00000001
> "ProxyServer"="xxx.xxx.xxx.xxx:8080"
>
> ------------------------------------------
> Windows Registry Editor Version 5.00
>
> [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
> Settings]
> "ProxyEnable"=dword:0000000
> "ProxyServer"=""
> ------------------------------------------
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 03-31-2007, 08:15 AM
C1SG
Newsgroup Contributor
 
Posts: n/a
Re: Proxy Server reset

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" wrote:

> You could use your "proxy_enable.reg" file to load the "run once" key here:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\RunOnce
> with something like "regedit /s proxy_disable.reg" (I hope that makes sense)
> Louis
>
> "C1SG" <C1SG@discussions.microsoft.com> wrote in message
> news:86D3B637-DD29-4B37-A1C6-F9E42214BD58@microsoft.com...
> > 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\Curre ntVersion\Internet
> > Settings]
> > "ProxyEnable"=dword:00000001
> > "ProxyServer"="xxx.xxx.xxx.xxx:8080"
> >
> > ------------------------------------------
> > Windows Registry Editor Version 5.00
> >
> > [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
> > Settings]
> > "ProxyEnable"=dword:0000000
> > "ProxyServer"=""
> > ------------------------------------------
> >

>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 04-06-2007, 11:00 AM
3c273
Newsgroup Contributor
 
Posts: n/a
Re: Proxy Server reset

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

"C1SG" <C1SG@discussions.microsoft.com> wrote in message
news:BBED8B3F-2260-4AE4-9CC6-941136C6DCCC@microsoft.com...
> 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" wrote:
>
> > You could use your "proxy_enable.reg" file to load the "run once" key

here:
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\RunOnce
> > with something like "regedit /s proxy_disable.reg" (I hope that makes

sense)
> > Louis
> >
> > "C1SG" <C1SG@discussions.microsoft.com> wrote in message
> > news:86D3B637-DD29-4B37-A1C6-F9E42214BD58@microsoft.com...
> > > 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\Curre ntVersion\Internet
> > > Settings]
> > > "ProxyEnable"=dword:00000001
> > > "ProxyServer"="xxx.xxx.xxx.xxx:8080"
> > >
> > > ------------------------------------------
> > > Windows Registry Editor Version 5.00
> > >
> > > [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
> > > Settings]
> > > "ProxyEnable"=dword:0000000
> > > "ProxyServer"=""
> > > ------------------------------------------
> > >

> >
> >
> >



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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
Proxy Server joshua siew Windows Vista 1 06-11-2008 03:10 AM
Server Reset Grandad Internet Explorer 0 02-15-2008 10:30 AM
IE via proxy server DD Internet Explorer 0 10-23-2007 11:30 PM
Proxy Server for PIE Andrew Prior Pocket PC General 1 04-28-2007 03:30 AM
Know about a proxy server? CharlesBlackstone Windows XP 7 01-04-2007 07:08 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 12:33 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0