Change IE9 Settings Using Batch Script and Registry Key

by Oscar

Just sharing some hacks I used for a logon script that I created for Internet explorer. Most of the hacks were using registry key, which is pretty simple as long as you know where the keys are.

Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.

Change Home Page

To set the home page for IE can’t be easier. For example setting as home page you do this:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain] "Start Page"=""

Change Search Provider


There are two parts to this one, first is adding Google as a search provider option, second is making Google the default search provider.

Each search provider installed has a unique search scope identifier, for example, the one for google is {523578E1-643D-43BB-8840-A021BF2B23AB}.

In this example I am adding google as a search provider option and making it default search provider.

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerSearchScopes{523578E1-643D-43BB-8840-A021BF2B23AB}] "DisplayName"="Google" "URL"="{searchTerms}&sourceid=ie7&{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}" "ShowSearchSuggestions"=dword:00000001 "SuggestionsURL"="{searchTerms}&hl=en-gb&gl=gb&client=ie8&mw={ie:maxWidth}&sh={ie:sectionHeight}&rh={ie:rowHeight}&inputencoding={inputEncoding}&outputencoding={outputEncoding}" "OSDFileURL"="" "FaviconURL"="" "FaviconPath"="C:\Users\oliang\AppData\LocalLow\Microsoft\Internet Explorer\Services\search_{523578E1-643D-43BB-8840-A021BF2B23AB}.ico" [HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerSearchScopes] "DefaultScope"="{523578E1-643D-43BB-8840-A021BF2B23AB}" "DownloadRetries"=dword:00000000 "ShowSearchSuggestionsInAddressGlobal"=dword:00000001 "KnownProvidersUpgradeTime"=hex:7d,ba,31,91,e7,65,ce,01 "Version"=dword:00000003 "UpgradeTime"=hex:09,5f,ee,b3,e4,65,ce,01

Internet Security Settings for the Four Zones


The Registry Key for this is located in

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones

There are 0, 1, 2, 3, 4 sub folders within this folder. Each Folder keeps different settings for different zones:

  • 0 – Computer
  • 1 – Local Intranet
  • 2 – Trusted Site
  • 3 – Internet
  • 4 – Restricted Sites

Easiest thing to do is setup whatever settings you need, and export the corresponding zone folder. To load the settings for that zone you just need to run that registry key file. Easy!

To add a website / domain to a particular zone, like “Trustted Site Zone”, you add the URL / domain to the zones first, then export this registry key.

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMap

For example to add as Trusted Site

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomains] @="" [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet] [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet] "http"=dword:00000002

Turn On / Off Tool Bar, Favorites Bar, Status Bar


This one is even easier, they are all in the same registry folder, this is the key values for turnning them all on:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMINIE] "ShowStatusBar"=dword:00000001 "LinksBandEnabled"=dword:00000001 "AlwaysShowMenus"=dword:00000001

ShowStatusBar is status bar obviously, LinkBandEnabled is the favorites bar, and AlwaysShowMenus is the toolbar. To turn them off, change values to 0.

Running Registry Key Files In Batch Script

You can run a registry key file using this command:

regedit -s \

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.


saraswathi 27th January 2015 - 6:19 am

Hi Oscar,
Thanks for giving me the solution to change internet settings. but am not getting clarity my requirement i want to enable JavaScript in ie10 how to achieve this task my using registry key plz give me the solution

Michael Carlisle 28th July 2014 - 10:36 pm

I would like to know how to change the registry settings to batch change the security settings. I want to change the Trusted Sites and Intranet to a custom level; where the user authentication is set to use current user name and password. Can you help me with this?

luis 3rd March 2015 - 3:53 pm

have you achieved this, as i am trying to accomplish the same task

Hugo 13th March 2014 - 3:44 pm

Hi Oscar,

Good post. I am looking at writing a batch file to add a intranet site and then set it as the default provider. Your post is very useful.

I just wondered, If you are adding Google as a search provider option using this script then how did you know the search identifier was {523578E1-643D-43BB-8840-A021BF2B23AB} in the registry before you added it?