ProxyEnable: is this the right key?

M

mslucas

I want to create a reg file which will Enable or Disable the proxy server

I tried the following script but it didn't work

---------
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware
Profiles\Current\Software\Microsoft\windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:00000000
---------

Is this the right key to change or must I use the following?

HKEY_USERS\S-1-5-21-343818398-1383384898-854245398-500\Software\Microsoft\Wi
ndows\CurrentVersion\Internet Settings

So is S-1-5-21-343818398-1383384898-854245398-500 always avaible on every
w2000 and XP machine?

Thanks in Advance

Maurice Lucas
TAOS-IT
 
T

Torgeir Bakken (MVP)

mslucas said:
I want to create a reg file which will Enable or Disable the proxy server

I tried the following script but it didn't work

---------
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware
Profiles\Current\Software\Microsoft\windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:00000000
---------

Is this the right key to change or must I use the following?

HKEY_USERS\S-1-5-21-343818398-1383384898-854245398-500\Software\Microsoft\Wi
ndows\CurrentVersion\Internet Settings

So is S-1-5-21-343818398-1383384898-854245398-500 always avaible on every
w2000 and XP machine?

Hi

Change the value under
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

and see if it works better.

S-1-5-21-3438183... keys are the SID for the current user logged in and it is
unique for that user (it is mapped to HKEY_CURRENT_USER)
 
M

mslucas

Torgeir Bakken (MVP) said:
mslucas said:
I want to create a reg file which will Enable or Disable the proxy server

I tried the following script but it didn't work

---------
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware
Profiles\Current\Software\Microsoft\windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:00000000

Change the value under
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

It didn't work.
Nothing changed.

I even tried
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
but that didn't work either

The only difference between two registry dumps where in the key I found in
the original posting and a .../profile/001/... and the S-1-5-21-3438183 key

Do you know any other place to look?

Thanks in advance

Maurice Lucas
 
N

NoneOfBusiness

Ok i did this when writing a program to enable the proxy with specific
settings at work. look here:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings
look for the Proxy Enable value and change its value from 0 to 1 to
enable or vice versa to disable. This only works on a per profile
basis though.


Torgeir Bakken (MVP) said:
mslucas said:
I want to create a reg file which will Enable or Disable the proxy server

I tried the following script but it didn't work

---------
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware
Profiles\Current\Software\Microsoft\windows\CurrentVersion\Internet
Settings]
"ProxyEnable"=dword:00000000

Change the value under
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

It didn't work.
Nothing changed.

I even tried
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet
Settings]
but that didn't work either

The only difference between two registry dumps where in the key I found in
the original posting and a .../profile/001/... and the S-1-5-21-3438183 key

Do you know any other place to look?

Thanks in advance

Maurice Lucas
 

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