Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting proxy value via policies

Status
Not open for further replies.

Tadh

IS-IT--Management
Feb 15, 2000
7
CA
Hi - I was wondering if someone could enlighten me.

I work for a school board and we use Windows NT servers and Windows 98 (recently upgraded from Windows 95) with group policies.

One of the policies we have used is a proxy policy to turn on and off an illegal proxy thus disabling problem users, or users who parents have not agreed to acceptible use terms, not to be able to use Internet Explorer.

This worked great in Windows 95 - but does not work in Windows 98 - the ip and port are set but the check box for proxy enabled never gets turned on.

I have included a copy of the template file below - if someone has an updated policy template or advice could you kindly share?

Template is:


;
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CLASS USER ;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

CATEGORY !!ProxyServer
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet Settings"

POLICY !!ProxyEnable
VALUENAME "ProxyEnable"
VALUEON NUMERIC 1 VALUEOFF NUMERIC 0
PART !!ProxyServerSet TEXT
END PART

PART !!ProxyServerSet1 EDITTEXT

VALUENAME "ProxyServer"
END PART
PART !!ProxyOverride EDITTEXT
VALUENAME "ProxyOverride"
END PART
END POLICY
END CATEGORY ;


[strings]
ProxyServerSet="Sets values for your proxies separated by semicolons."
ProxyServerSet1=&quot;Format: <URL>:<Port number>&quot;
ProxyServer=&quot;Set the values for your proxy servers.&quot;
ProxyEnable=&quot;Should the proxy be enabled?&quot;
ProxyOverride=&quot;For which values should the proxy be overridden?&quot;

 
I have recently installed a Proxy Update program within my firm. THe firm proxy settings are held in a central firm, meaning we can control the Proxy Settings ditributed to users, as no matter what they do, these settings are replaced in login.

You basically want


[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

the following settings

&quot;ProxyServer&quot;=&quot;PROXY:3000&quot;
&quot;ProxyEnable&quot;=dword:00000001
&quot;ProxyOverride&quot;=&quot;<local>&quot;

You may also need to apply it to LOCAL_USER and LOCAL MACHINE, but this if for your testing. Users who are part of a group have access to this batch file (REGEDIT/s &quot;file.reg&quot;) which runs automatically on the startup of the system. This to all users, but can be given to selected users, or an NT File Group called YES could see the file and NO could not. Then a file not found would just appear and proxy would not added.

A default could be put into login script to remove proxy.

If you want some help, pls let me know, Ill send you my examples I have prepared.

Fatz
 
Thanks Fatz

Yes that would be wonderful - I'd like to learn more about how you implimented it and what your scripts look like.

 
The following .REG file


REGEDIT4



[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]


&quot;ProxyServer&quot;=&quot;WEBGATE:80&quot;
&quot;ProxyEnable&quot;=dword:00000001
&quot;ProxyOverride&quot;=&quot;<local>&quot;

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer]

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]


&quot;Start Page&quot;=&quot;
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion]

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings]


&quot;ProxyServer&quot;=&quot;WEBGATE:80&quot;
&quot;ProxyEnable&quot;=dword:00000001
&quot;ProxyOverride&quot;=&quot;<local>&quot;

[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer]

[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]

&quot;Start Page&quot;=&quot;

Is exectuted in a global startup (or local startup group) with the command &quot;REGEDIT.EXE /s &quot;Myfile.reg&quot;

Hope this of some help. With IEAK and IE 5.5, tends not to work during a login script, but overwrite previosuly made configs.

Hope is of help

Fatz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top