/build/static/layout/Breadcrumb_cap_w.png

Change IE Proxy using K1000

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

Answers (5)

Posted by: matiasm 11 years ago
Orange Senior Belt
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"

 

Posted by: dugullett 11 years ago
Red Belt
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


Comments:
  • cant find this page dugullett - brighstarcuit 11 years ago
    • I edited it. I'm not sure why that happened. Try again. - dugullett 11 years ago
Posted by: jverbosk 11 years ago
Red Belt
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

Posted by: M P 11 years ago
Purple Belt
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/.

Posted by: jdornan 11 years ago
Red Belt
1

You can script reg changes through KSCRIPT as well. 

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

 

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ