Akshay's Weblog

Quest for Oasis

A batch file for setting IE as the default browser

A batch file for setting IE as the default browser

Rate This
  • Comments 6

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.

Attachment: Set IE as default browser.bat
Leave a Comment
  • Please add 4 and 5 and type the answer here:
  • Post
  • 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.

  • 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

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

  • Hi

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

    Regards

  • 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

    Oscar

  • Thank you very much!!!

Page 1 of 1 (6 items)