Jersey Datacentre and Cloud Services Knowledgebase (previously provided by Foreshore)

Home Search
Welcome Guest ( Login )

IE Autodetect Proxy settings for Dynamic Desktops

Expand / Collapse

IE Autodetect Proxy settings for Dynamic Desktops

The details covered off in this article can be used to change the default behaviour of Internet Explorer when a user opens it for the first time to a machine.  Due to the nature of dynamic VDIs which reset back to a clean image every time that a user logs off you can encounter this issue with Internet Explorer where it tries to discover proxy servers every time that you login to the machine.

We have managed to prevent this from happening with our dynamic desktop pool by carrying out the following steps so you may wish to implement a similar setup.


Create a batchfile by opening up notepad, pasting in the following content and then saving it with a file type of .bat.  This has the 15 pings to local host in it to delay the script before it imports the specified registry key.

@echo off

Ping –n 15

REGEDIT /S IE-Auto-Detect.reg


Now you need to create a registry key file from a reference machine.  Login to a VDI and open Internet Explorer.  Go to Internet Options > Connections tab > LAN Settings button.

If you are not using a proxy server untick all of the fields.  If you are using a proxy server then untick the ‘Automatically detect settings’ box and click ok.  Now open Regedit and export the following key and save it as IE-Auto-Detect.reg:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections

This will look something like:










Now you need to create a new GPO using the Group Policy Management editor on your domain controller.  Link this at the relevant level in your organisation.

Edit the GPO and navigate to:

User Configuration > Windows Settings > Scripts (Logon / Logoff)

In the right hand pane right click on logon and select properties

In the window that opens click on the ‘Show Files’ button.  This will take you to the correct location in Sysvol to save your script.  Copy your LogonScript.bat and IE-Auto-Detect.reg files into this directory.

Now back in the window where you clicked on the Show Files button click the ‘Add..’ button to add a login script.  In the name field type LogonScript.bat and leave the parameters field blank.

IE should now be a lot more responsive when the user opens it for the first time rather than having it look like its hanging for a minute or so while it checks proxy settings.  You may want to play with the number of pings used for the delay dependant on your environment but we found that 15 was best for ours.

Rate this Article:

Add Your Comments

Comment require login or registration.

Last Modified:02/07/2014 12:44:35

Last Modified By: stevel


Article not rated yet.

Article has been viewed 3,845 times.