2

I guess the title of the question speaks for itself, but ideally we'd like to set registry keys rather than run some kind of tool. That way we can make a script for it.

Does anyone know the registry settings that need to change to set IE as the default browser

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
RobertTheGrey
  • 680
  • 2
  • 8
  • 16

5 Answers5

4

In Windows XP

For HTTP:

HKEY_CLASSES_ROOT\http\shell\open\command

The format is like this:

HKEY_CLASSES_ROOT\[prot]\shell\open\command

where [prot] is the protocol (HTTP, FTP..)

In Windows Vista

For HTTP:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http

The format is like this:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\[prot]

where [prot] is the protocol (HTTP, FTP..)

For more in depth info see this link.

Unkwntech
  • 1,762
  • 3
  • 19
  • 24
2

From what I've heard, there are a fair number of places you need to change in order to cover all the various ways of launching a browser.

I suggest you:

  • Make a different browser the default (possibly several, one after another, to try to cover all bases - they may well get it wrong)
  • Start RegMon
  • Make Internet Explorer the default (e.g. in Default Programs, or just by launching it if it offers)
  • Stop RegMon and find out all the "writes" that have been logged. They probably won't all be relevant, but it should be easy to work out which ones are.

That way you know you'll be covering the registry changes that IE itself would make. Repeat on different platforms to cover differences there.

Jon Skeet
  • 4,767
  • 1
  • 24
  • 17
0

You can add below two lines in a bat file

reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /f /v "Check_Associations" /d "yes" /t REG_SZ

reg add "HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice" /f /v "ProgId" /d "IE.HTTP" /t REG_SZ

After running the bat, reboot/log off and log back since above two command lines are meant to change registry values..

Aditinal details can be found here

(Fixed)-Cant set Internet Explorer as the Default Browser ! http://www.windowstechinfo.com/2016/03/fixed-cant-set-internet-explorer-as-the-default-browser.html

Aravinda
  • 1,081
  • 5
  • 12
  • 30
0

This is an old thread, but was giving me trouble on some Windows 7 devices.

Here is a working GPO for Windows 7 devices.
Thanks to Aravinda above for getting me pointed in the right direction.

User Configuration/Preferences/Registry

Right Click and select New Registry Item

Hive: HKEY_CURRENT_USER

Key Path: Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice

Value name: ProgID

Value Type: REG_SZ

Value Data: IE.HTTP

Do this a second time, but change the key path to:

Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice

Change Value Data to: IE.HTTPS

-1

I tried all the above and also other web sites. Nothing worked. I found the answer quite by accident. I’ve spent many hours and days trying to figure this out.

Go to Default Programs on the Start - hit Program Access. Then to Choose Default. Use Current Web Browser.

slm
  • 7,355
  • 16
  • 54
  • 72
James
  • 1
  • 3
    This will let someone change it, but it isn't the registry key that stores it, and it's certainly not an automatic way to do it (for a bulk change). – Falcon Momot Nov 14 '13 at 06:10