Systems Management Question

Change IE Proxy using K1000

03/07/2013 57623 views

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]

any help would be greatly appreciated!



0 Comments   [ + ] Show comments


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

All Answers


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


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. 


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.

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!



#NoTrayIcon ; Hides tray icon
; Ping first proxy server then set it if pingable
If Ping("") 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","")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\" & _
"Internet Settings","ProxyOverride","REG_SZ","<local>")
; Disable proxy settings if no proxy server is reachable
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\" & _
"Internet Settings","ProxyEnable","REG_DWORD",0)
Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE") ; Run Internet Explorer

Answered 03/07/2013 by: jverbosk
Red Belt


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:

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


You can script reg changes through KSCRIPT as well. 



Answered 03/11/2013 by: jdornan
Red Belt

This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.
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