ProxyEnable: is this the right key?

  • Thread starter Thread starter mslucas
  • Start date Start date
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
 
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)
 
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
 
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
 
Back
Top