{"id":396,"date":"2017-11-10T10:46:00","date_gmt":"2017-11-10T09:46:00","guid":{"rendered":"http:\/\/kolbi.cz\/blog\/?p=396"},"modified":"2025-04-26T00:23:17","modified_gmt":"2025-04-25T23:23:17","slug":"setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607","status":"publish","type":"post","link":"https:\/\/kolbi.cz\/blog\/2017\/11\/10\/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607\/","title":{"rendered":"SetDefaultBrowser &#8211; Set the Default Browser per command line or script"},"content":{"rendered":"<p><strong><span style=\"color: #ff0000;\">UPDATE 05.03.2024 &#8211; SetDefaultBrowser will not be maintained anymore. its functionality will be integrated into <a href=\"https:\/\/setuserfta.com\">SetUserFTA 2.0<\/a><\/span><\/strong><\/p>\n<p><span style=\"color: #ff0000;\"><strong>ATTENTION: if SetDefaultBrowser does not work anymore after the recent Windows Updates, please read my blogpost about the<\/strong><\/span> <a href=\"https:\/\/kolbi.cz\/blog\/2024\/04\/03\/userchoice-protection-driver-ucpd-sys\/\">UserChoice Protection Driver<\/a><\/p>\n<p><strong>UPDATE 20.02.2020<\/strong> &#8211; Version 1.5 detects now Edge Side-by-side installations. <a href=\"https:\/\/docs.microsoft.com\/en-us\/deployedge\/microsoft-edge-sysupdate-access-old-edge\" target=\"_blank\" rel=\"noopener noreferrer\">How can i configure this<\/a><\/p>\n<p><strong>UPDATE 06.02.2020<\/strong> &#8211; Version 1.4 adds support for Microsoft Edge Chromium<\/p>\n<p><strong>UPDATE 24.10.2018<\/strong> &#8211; Version 1.3 is completely coded from scratch. New features: Supports <strong>ALL Browsers<\/strong> (any installed Browser, portable Browsers, App-V Browsers, AppData Browsers, etc.), start delay option added, full Unicode support, includes EULA.<\/p>\n<p><strong>UPDATE 16.12.2017<\/strong> &#8211; Version 1.2 now supports Windows 8\/8.1 and Server 2012\/R2.<\/p>\n<p><strong>UPDATE 10.12.2017<\/strong> &#8211; <em>running Windows 1703 and newer, you can now use my <a href=\"\/blog\/2017\/10\/25\/setuserfta-userchoice-hash-defeated-set-file-type-associations-per-user\/\" target=\"_blank\" rel=\"noopener noreferrer\">SetUserFTA<\/a> utility to change the default browser. Just make sure you set .htm. html, http and https properly.\u00a0<\/em><\/p>\n<p>if you are into XenApp, RDS or VDI, then you probably know how difficult it is to configure the environment properly for the enduser nowadays. in my latest blog article, i showed you how to configure File Type Associations per User. based on this previous work i have created a utility that can do the same for the Default Browser.<\/p>\n<p>the story behind is pretty much the same, but to set a Browser, additional Registry Keys are needed (they are protected with the hash just like the file types). the only difference is, that Microsoft also checks the path of the Browser &#8211; on certain Windows builds. for that reason i decided to create a separate tool to make it as simple as possible.<\/p>\n<p>newer windows builds don&#8217;t check the path of the browser anymore and therefore the hash changed too &#8211; but i have updated my tool to support following operating systems:<\/p>\n<ul>\n<li>Windows 10 x86\/x64 All Builds<\/li>\n<li>Server 2016 Build 1607<\/li>\n<li>Server 2019 Build 1809<\/li>\n<li>Windows 8 and 8.1<\/li>\n<li>Server 2012 and 2012 R2<\/li>\n<\/ul>\n<p>if you want to know more about the technical details, please read my <a href=\"\/blog\/2017\/10\/25\/setuserfta-userchoice-hash-defeated-set-file-type-associations-per-user\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous blog post<\/a>.<\/p>\n<h1>how to use<\/h1>\n<p>its really simple. just run SetDefaultBrowser.exe in the user context (there is a list of possible ways in my previous blog) with the the hive and browser of your choice. Since the version 1.3 there are more parameters and it might look complicated, but it gives you actually much more flexibility. Just run SetDefaultBrowser without parameters to get a list of all available browsers:<\/p>\n<p><a href=\"http:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/SetDefaultBrowser_v1.3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-553\" src=\"http:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/SetDefaultBrowser_v1.3.jpg\" alt=\"\" width=\"1359\" height=\"1242\" srcset=\"https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/SetDefaultBrowser_v1.3.jpg 1359w, https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/SetDefaultBrowser_v1.3-300x274.jpg 300w, https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/SetDefaultBrowser_v1.3-768x702.jpg 768w, https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/SetDefaultBrowser_v1.3-1024x936.jpg 1024w\" sizes=\"auto, (max-width: 1359px) 100vw, 1359px\" \/><\/a><\/p>\n<p>as you can see, i have a ton of Browsers on my system and using the following examples i can change the default Browser:<\/p>\n<ul>\n<li><strong>SetDefaultBrowser.exe HKLM Firefox-308046B0AF4A39CB<\/strong><\/li>\n<li>this will set the x64 Firefox as my default<\/li>\n<li><strong>SetDefaultBrowser HKCU &#8220;Google Chrome.HEYY3KJOYOAJOPVCHWOFAPMTPI&#8221;<\/strong><\/li>\n<li>this will set the Chrome that is only installed in my AppData as my default<\/li>\n<li><strong>SetDefaultBrowser.exe Edge delay=1000<\/strong><\/li>\n<li>this will set Edge as my default browser, but will wait 1 second until it executes. delay must be provided in milliseconds.<\/li>\n<li><strong>SetDefaultBrowser.exe\u00a0HKLM IEXPLORE.EXE group=IE_Users<\/strong><\/li>\n<li>this will set IE as my default Browser, if i am member of the IE_Users group<\/li>\n<\/ul>\n<p>i hope these examples explain the possibilities and parameters clearly. if a browser identifier contains a space, you must use quotes &#8211; for example &#8220;Google Chrome&#8221;. the same applies to group names (but you also can use Domain\\Group or group@yourdomain.tld).<\/p>\n<p>to maintain limited compatibility with the older versions of SetDefaultBrowser, i have added shortcuts to the most used Browsers<\/p>\n<ul>\n<li><strong>SetDefaultBrowser.exe chrome<\/strong><\/li>\n<li>this will set Chrome as my default Browser, when its available in HKLM<\/li>\n<li><strong>SetDefaultBrowser.exe ie delay=2000<\/strong><\/li>\n<li>this will set Internet Explorer as my default Browser but delays two seconds before<\/li>\n<li><strong>SetDefaultBrowser edge group=EdgeUsers<\/strong><\/li>\n<li>this will make Edge the default if the user is member of the EdgeUsers group<\/li>\n<\/ul>\n<p>available shortcuts are: chrome, ie, iexplore, edge and edgelegacy. i had to skip Firefox, since you can have multiple Firefox installations (for example x64 and x86, like on the screenshot above) and using the hive and browser parameter, you can better specify which one you want to set as default.<\/p>\n<p>SetDefaultBrowser will also find the browser when it is not installed at the default path.<\/p>\n<p>the easiest way in an enterprise environment is to use the Group Policy Logon Script feature (you need loopback mode activated, when deploying to computers) &#8211; but there are many other ways (check the SetUserFTA blog for more ideas).<\/p>\n<p><span style=\"color: #ff0000;\"><strong>IMPORTANT: <span style=\"color: #000000;\">a portable Browser must be registered in the registry first to work with SetDefaultBrowser. You can learn how to do that in my <a href=\"https:\/\/kolbi.cz\/blog\/2019\/01\/27\/register-a-portable-browser-and-make-it-the-default\/\">blog post.<\/a><\/span><\/strong><\/span><\/p>\n<h1>additional info<\/h1>\n<p>if you still see this screen after you used SetDefaultBrowser:<\/p>\n<p><a href=\"https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/openwith.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-511 size-full\" src=\"https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/openwith.jpg\" alt=\"\" width=\"388\" height=\"502\" srcset=\"https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/openwith.jpg 388w, https:\/\/kolbi.cz\/blog\/wp-content\/uploads\/2017\/11\/openwith-232x300.jpg 232w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/a><\/p>\n<p>then try this registry key (needs an explorer.exe restart or just a re-login):<\/p>\n<p>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer]<br \/>\n\u201cNoNewAppAlert\u201d=dword:00000001<\/p>\n<p>this registry key also works with HKEY_CURRENT_USER!<\/p>\n<p>or enable the GPO\u00a0<strong><em>Do not show the \u2018new application installed\u2019 notification<\/em><\/strong>\u00a0(Windows Components, File Explorer).<\/p>\n<h1>bugs? requests?<\/h1>\n<p>if you find a bug or have a special request, you can send me a <a href=\"https:\/\/setuserfta.com\/bug-report\/\">bug report<\/a> or a <a href=\"https:\/\/setuserfta.com\/feature-suggestion\/\">feature suggestion<\/a><\/p>\n<blockquote><p>If you plan to use SetDefaultBrowser (now SetUserFTA) in a commercial or professional (non-private) environment, please request a quote over following link: <a href=\"https:\/\/setuserfta.com\/request-a-quote\/\">https:\/\/setuserfta.com\/request-a-quote\/<\/a><\/p><\/blockquote>\n<p><span style=\"color: #ff0000;\"><strong>The download is not available anymore, since SetUserFTA now contains the same functionality. Visit <a href=\"https:\/\/setuserfta.com\">https:\/\/setuserfta.com<\/a> for more information.<\/strong><\/span><\/p>\n<p><b>Version 1.0 &#8211; first public version<\/b><br \/>\n<b>Version 1.0.1 &#8211; additional Firefox detection<\/b><br \/>\n<b>Version 1.1 &#8211; now working on Windows 1703 and 1709, opera support added<\/b><br \/>\n<b>Version 1.2 &#8211; support for Windows 8.x and Server 2012\/R2 added<\/b><br \/>\n<b>Version 1.3 &#8211; support for ALL Browsers, delay parameter, full Unicode, EULA<br \/>\nVersion 1.4 &#8211; support for Microsoft Edge Chromium<br \/>\nVersion 1.5 &#8211; allows Edge Side-by-side configurations\u00a0<\/b><\/p>\n<p><span style=\"color: #ff0000;\">SetDefaultBrowser will not be maintained anymore and its functionality integrated into <\/span><a href=\"https:\/\/setuserfta.com\">SetUserFTA 2.0<\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>ATTENTION: if SetDefaultBrowser does not work anymore after the recent Windows Updates, please read my blogpost about the<\/strong><\/span> <a href=\"https:\/\/kolbi.cz\/blog\/2024\/04\/03\/userchoice-protection-driver-ucpd-sys\/\">UserChoice Protection Driver<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>UPDATE 05.03.2024 &#8211; SetDefaultBrowser will not be maintained anymore. its functionality will be integrated into SetUserFTA 2.0 ATTENTION: if SetDefaultBrowser does not work anymore after <a class=\"mh-excerpt-more\" href=\"https:\/\/kolbi.cz\/blog\/2017\/11\/10\/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607\/\" title=\"SetDefaultBrowser &#8211; Set the Default Browser per command line or script\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":478,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,14,6,5],"tags":[15,16],"class_list":["post-396","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-citrix","category-security","category-windows","category-xenapp","tag-commandline","tag-euc"],"_links":{"self":[{"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/comments?post=396"}],"version-history":[{"count":62,"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":1220,"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/posts\/396\/revisions\/1220"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/media\/478"}],"wp:attachment":[{"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/media?parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/categories?post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kolbi.cz\/blog\/wp-json\/wp\/v2\/tags?post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}