A batch file for setting IE as the default browser

One of my customers wanted assistance to set the Internet Explorer as the default browser through group policy even though the user installs other browsers and makes it the default browser.

Since there aren't any predefined GP available, I helped him write a batch file that will set the registries to make IE as the default browser

This batch file can be further used as a Logon Script which can get applied on the client machines after the users login to the machine. However you can use it on individual machines too, in case you don’t want to use the group policy.

NOTE: I have tested this batch file when Firefox and Chrome were selected as default browser earlier.

Please find the batch file attached to this blog and test it thoroughly before you use it. If there are any questions, please feel free to comment.

Set IE as default browser.bat

Comments (6)

  1. Ankita says:

    Are these logon scripts always related to making changes in the registry.

    One gets an option to set the default browser as per his/ her choice. In IE there is this option in Tools->Internet Options->Programs and select the option for "IE should check to see whether it is the default browser"

    And inspite of installing other browsers there is an option given to set the current browser as the default broswer. So the user can uncheck it.

  2. Akshay N S says:

    Yes you are correct about the IE option in Internet Options Ankita. But here my customer wanted to have the IE as the default browser even though a user selects different browser as the default. He wanted it to be changed automatically, than having it done manually.

    The logon scripts may not contain changes related to registry, you can run a few commands you want to get executed while the user logs in

  3. jason says:

    Thanks a million…. saved me from having to touch 400 laptops and set the default browser!!!

  4. Showkat Babu says:


    Is there any batch file I can run which will set Outlook as default mail for logged on user using the AD login script.


  5. Oscar Jimenez says:

    Hi Akshay,

    I am executing the batch in my pc testing it, but it does not apply IE as default browser, it does not change my default browser.

    Thanks for your help


  6. Markus says:

    Thank you very much!!!

Skip to main content