I presently use Group Policy to distribute down the settings for the proxy settings for IE8 for all of our users. However, this does not LOCK it down and grey it out so that they cannot change it. I would like to be able to 'grey out' the ability to change from Use Proxy Server to AutoDetect and make this pushed out by either group policy or using kace. This needs to work for both Mozilla Firefox and IE8. just checking how do you have this setup in your everinoment are you using kace or GP to deploy do you guys know of any script or batch file that i can use to get this accomplish i found the registry entry.


[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MigrateProxy"=dword:00000001
"ProxyEnable"=dword:00000001
"ProxyHttp1.1"=dword:00000000
"ProxyServer"="http://ProxyServername:80"
"ProxyOverride"="<local>"

any help would be greatly appreciated!

 

thanks

0 Comments   [ + ] Show Comments

Comments

  • This content is currently hidden from public view.
    Reason: Removed by member request
    For more information, visit our FAQ's.
Please log in to comment

Answers

2

Since this regkey resides in the HKEY_CURRENT_USER part of the registry if you apply these settings with a batch file the changes will only apply to that current user. The best way would be to apply via GPO if possible since that will apply to all memebers of the machine. 

If you really needed or wanted to do it via batch file it'd have to be set as a startup item for all users so the batch file runs each time a user logs in to make that all users of that comptuter get the settings in their respective HKCU in the registry.

The best way to do that would be copy and paste what you have listed above and save it is a  .reg file then make batch file to go along with it, in the batch:

@echo off

regedit.exe /s "nameofreg.reg"

 

Answered 03/07/2013 by: matiasm
Orange Senior Belt

Please log in to comment
2

I would use GPO for this. If you do want to use a script I would look into Active Setup to ensure every user received this. 

http://itninja.com/blog/view/appdeploy-articles-activesetup

Answered 03/07/2013 by: dugullett
Red Belt

  • cant find this page dugullett
    • I edited it. I'm not sure why that happened. Try again.
Please log in to comment
2

You could use an AutoIT script to do this - it would deploy as an executable so you would just upload that to the K1000 script's dependencies.  Here's what I used for our remote machines to turn proxy settings on and off depending on whether they were on our network or not - tweak to suit your own needs.

Hope that helps!

John

__________________________

#NoTrayIcon ; Hides tray icon
; Ping first proxy server then set it if pingable
;=====================================================================
If Ping("192.168.0.15") Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\" & _
"Internet Settings","ProxyEnable","REG_DWORD",1)
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\" & _
"Internet Settings","ProxyServer","REG_SZ","192.168.0.15:3128")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\" & _
"Internet Settings","ProxyOverride","REG_SZ","<local>")
; Disable proxy settings if no proxy server is reachable
;=====================================================================
Else
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\" & _
"Internet Settings","ProxyEnable","REG_DWORD",0)
EndIf
Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE") ; Run Internet Explorer

Answered 03/07/2013 by: jverbosk
Red Belt

Please log in to comment
1

I would use a Group Policy for this, especially if you are already using one.  There are options in the GPO to also disable the user from changing the settings, it is just found in a different section than where you actually specify the proxy configuration.  If you try to specify the settings through a script and do not modify your GPO to stop pushing it's settings, the proxy settings will revert back to what is specified in the GPO over and over again.

Disable changing proxy settings:
http://technet.microsoft.com/en-us/library/cc960614.aspx

If you want to enforce this for FireFox as well, check out the FireFox ADM that can be imported into your existing GPO to control FireFox settings at https://addons.mozilla.org/en-us/firefox/addon/gpo-for-firefox/ or http://sourceforge.net/projects/firefoxadm/.

Answered 03/18/2013 by: M P
Purple Belt

Please log in to comment
1

You can script reg changes through KSCRIPT as well. 

http://itninja.com/blog/view/k1000-script-to-disable-ie-10-upgrade

 

Answered 03/11/2013 by: jdornan
Red Belt

Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

Answer this question or Comment on this question for clarity