How to automate setting Chrome as default browser in Windows 10












13















I've tried setting default in the reg keys:



hkeycu>software>microsoft>windows>shell>associations>urlassociations>http and https.



Tried using master_preference file.



Tried using command switch --make-default-browser.



So far these aren't working.



Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.










share|improve this question




















  • 1





    This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…

    – Moab
    Apr 25 '16 at 2:46











  • stackoverflow.com/questions/17536405/…

    – Moab
    Apr 25 '16 at 3:03






  • 1





    In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…

    – Win32Guy
    Apr 25 '16 at 5:02











  • Check out Judy Li's answer below; it worked for me!

    – Sam
    Apr 5 '17 at 23:48
















13















I've tried setting default in the reg keys:



hkeycu>software>microsoft>windows>shell>associations>urlassociations>http and https.



Tried using master_preference file.



Tried using command switch --make-default-browser.



So far these aren't working.



Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.










share|improve this question




















  • 1





    This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…

    – Moab
    Apr 25 '16 at 2:46











  • stackoverflow.com/questions/17536405/…

    – Moab
    Apr 25 '16 at 3:03






  • 1





    In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…

    – Win32Guy
    Apr 25 '16 at 5:02











  • Check out Judy Li's answer below; it worked for me!

    – Sam
    Apr 5 '17 at 23:48














13












13








13


3






I've tried setting default in the reg keys:



hkeycu>software>microsoft>windows>shell>associations>urlassociations>http and https.



Tried using master_preference file.



Tried using command switch --make-default-browser.



So far these aren't working.



Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.










share|improve this question
















I've tried setting default in the reg keys:



hkeycu>software>microsoft>windows>shell>associations>urlassociations>http and https.



Tried using master_preference file.



Tried using command switch --make-default-browser.



So far these aren't working.



Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.







command-line google-chrome windows-10 browser windows-registry






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 '18 at 21:48









freginold

429414




429414










asked Apr 25 '16 at 1:17









JoshJosh

76225




76225








  • 1





    This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…

    – Moab
    Apr 25 '16 at 2:46











  • stackoverflow.com/questions/17536405/…

    – Moab
    Apr 25 '16 at 3:03






  • 1





    In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…

    – Win32Guy
    Apr 25 '16 at 5:02











  • Check out Judy Li's answer below; it worked for me!

    – Sam
    Apr 5 '17 at 23:48














  • 1





    This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…

    – Moab
    Apr 25 '16 at 2:46











  • stackoverflow.com/questions/17536405/…

    – Moab
    Apr 25 '16 at 3:03






  • 1





    In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…

    – Win32Guy
    Apr 25 '16 at 5:02











  • Check out Judy Li's answer below; it worked for me!

    – Sam
    Apr 5 '17 at 23:48








1




1





This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…

– Moab
Apr 25 '16 at 2:46





This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…

– Moab
Apr 25 '16 at 2:46













stackoverflow.com/questions/17536405/…

– Moab
Apr 25 '16 at 3:03





stackoverflow.com/questions/17536405/…

– Moab
Apr 25 '16 at 3:03




1




1





In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…

– Win32Guy
Apr 25 '16 at 5:02





In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…

– Win32Guy
Apr 25 '16 at 5:02













Check out Judy Li's answer below; it worked for me!

– Sam
Apr 5 '17 at 23:48





Check out Judy Li's answer below; it worked for me!

– Sam
Apr 5 '17 at 23:48










7 Answers
7






active

oldest

votes


















6














Have you tried making a .vbs file to set Chrome as the default browser automatically?



Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit


Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD






share|improve this answer


























  • Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!

    – Sam
    Apr 5 '17 at 23:47











  • Also, if you want to run this on startup, just put the .vbs file in %APPDATA%MicrosoftWindowsStart MenuProgramsStartup

    – Sam
    Apr 6 '17 at 0:35








  • 1





    Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".

    – Sam
    Apr 14 '17 at 3:29








  • 2





    I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).

    – Ellipsis
    Jan 26 '18 at 8:52



















4














Here is the PowerShell version of the Judy Li / Raz solution:



function Set-ChromeAsDefaultBrowser {
Add-Type -AssemblyName 'System.Windows.Forms'
Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
Sleep 2
[System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
}





share|improve this answer































    0














    I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.






    share|improve this answer

































      0














      Take the script from Judy Li’s answer and tweak it.



      Option Explicit
      Dim oShell, sWinDir
      Set oShell = WScript.CreateObject("WScript.Shell")
      sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
      oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
      Set oShell = Nothing
      WScript.Quit


      Save it on your desktop as a .vbs file
      (e.g., SetDefaultProgams.vbs). 
      Double clicking it will bring up the more familiar Set Default Programs
      with the list on the left, like previous versions of Windows 10.



      (Of course there are other ways to invoke a program / script. 
      You could put it on your Start Menu, or run it through CMD or PowerShell.)



      This script was tested by me on Windows version 10.0.16299.192.






      share|improve this answer

































        0














        I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.



        Set WshShell = WScript.CreateObject("WScript.Shell")
        WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
        WScript.Sleep 1200
        WshShell.SendKeys "{TAB}"
        WshShell.SendKeys "{TAB}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys " "
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys " "
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys " "
        WshShell.SendKeys "{DOWN}"
        WshShell.SendKeys " "
        WshShell.SendKeys "{TAB}"
        WshShell.SendKeys " "
        WScript.Quit





        share|improve this answer































          0














          To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.



          Launched SetDefaultBrowser.exe HKLM "Google Chrome" and it worked fine for me.






          share|improve this answer































            -2














            On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug






            share|improve this answer


























            • What are the steps to set Chrome as a default browser instantly?

              – alljamin
              Feb 16 '17 at 23:22











            • On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.

              – alancussen
              Feb 18 '17 at 0:39













            • Add this to your answer.

              – alljamin
              Feb 18 '17 at 2:42






            • 4





              I think he/she was wanting to do this programmatically rather than manually.

              – Sam
              Apr 5 '17 at 23:43











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1069346%2fhow-to-automate-setting-chrome-as-default-browser-in-windows-10%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            7 Answers
            7






            active

            oldest

            votes








            7 Answers
            7






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            Have you tried making a .vbs file to set Chrome as the default browser automatically?



            Set WshShell = WScript.CreateObject("WScript.Shell")
            WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
            WScript.Sleep 1200
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WScript.Quit


            Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD






            share|improve this answer


























            • Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!

              – Sam
              Apr 5 '17 at 23:47











            • Also, if you want to run this on startup, just put the .vbs file in %APPDATA%MicrosoftWindowsStart MenuProgramsStartup

              – Sam
              Apr 6 '17 at 0:35








            • 1





              Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".

              – Sam
              Apr 14 '17 at 3:29








            • 2





              I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).

              – Ellipsis
              Jan 26 '18 at 8:52
















            6














            Have you tried making a .vbs file to set Chrome as the default browser automatically?



            Set WshShell = WScript.CreateObject("WScript.Shell")
            WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
            WScript.Sleep 1200
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WScript.Quit


            Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD






            share|improve this answer


























            • Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!

              – Sam
              Apr 5 '17 at 23:47











            • Also, if you want to run this on startup, just put the .vbs file in %APPDATA%MicrosoftWindowsStart MenuProgramsStartup

              – Sam
              Apr 6 '17 at 0:35








            • 1





              Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".

              – Sam
              Apr 14 '17 at 3:29








            • 2





              I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).

              – Ellipsis
              Jan 26 '18 at 8:52














            6












            6








            6







            Have you tried making a .vbs file to set Chrome as the default browser automatically?



            Set WshShell = WScript.CreateObject("WScript.Shell")
            WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
            WScript.Sleep 1200
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WScript.Quit


            Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD






            share|improve this answer















            Have you tried making a .vbs file to set Chrome as the default browser automatically?



            Set WshShell = WScript.CreateObject("WScript.Shell")
            WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
            WScript.Sleep 1200
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys "{TAB}"
            WshShell.SendKeys " "
            WScript.Quit


            Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 6 '17 at 4:37









            Sam

            9831931




            9831931










            answered Mar 2 '17 at 16:56









            Judy LiJudy Li

            7114




            7114













            • Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!

              – Sam
              Apr 5 '17 at 23:47











            • Also, if you want to run this on startup, just put the .vbs file in %APPDATA%MicrosoftWindowsStart MenuProgramsStartup

              – Sam
              Apr 6 '17 at 0:35








            • 1





              Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".

              – Sam
              Apr 14 '17 at 3:29








            • 2





              I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).

              – Ellipsis
              Jan 26 '18 at 8:52



















            • Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!

              – Sam
              Apr 5 '17 at 23:47











            • Also, if you want to run this on startup, just put the .vbs file in %APPDATA%MicrosoftWindowsStart MenuProgramsStartup

              – Sam
              Apr 6 '17 at 0:35








            • 1





              Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".

              – Sam
              Apr 14 '17 at 3:29








            • 2





              I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).

              – Ellipsis
              Jan 26 '18 at 8:52

















            Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!

            – Sam
            Apr 5 '17 at 23:47





            Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!

            – Sam
            Apr 5 '17 at 23:47













            Also, if you want to run this on startup, just put the .vbs file in %APPDATA%MicrosoftWindowsStart MenuProgramsStartup

            – Sam
            Apr 6 '17 at 0:35







            Also, if you want to run this on startup, just put the .vbs file in %APPDATA%MicrosoftWindowsStart MenuProgramsStartup

            – Sam
            Apr 6 '17 at 0:35






            1




            1





            Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".

            – Sam
            Apr 14 '17 at 3:29







            Also, you can simplify the SendKeys bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} ".

            – Sam
            Apr 14 '17 at 3:29






            2




            2





            I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).

            – Ellipsis
            Jan 26 '18 at 8:52





            I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).

            – Ellipsis
            Jan 26 '18 at 8:52













            4














            Here is the PowerShell version of the Judy Li / Raz solution:



            function Set-ChromeAsDefaultBrowser {
            Add-Type -AssemblyName 'System.Windows.Forms'
            Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
            Sleep 2
            [System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
            }





            share|improve this answer




























              4














              Here is the PowerShell version of the Judy Li / Raz solution:



              function Set-ChromeAsDefaultBrowser {
              Add-Type -AssemblyName 'System.Windows.Forms'
              Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
              Sleep 2
              [System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
              }





              share|improve this answer


























                4












                4








                4







                Here is the PowerShell version of the Judy Li / Raz solution:



                function Set-ChromeAsDefaultBrowser {
                Add-Type -AssemblyName 'System.Windows.Forms'
                Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
                Sleep 2
                [System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
                }





                share|improve this answer













                Here is the PowerShell version of the Judy Li / Raz solution:



                function Set-ChromeAsDefaultBrowser {
                Add-Type -AssemblyName 'System.Windows.Forms'
                Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
                Sleep 2
                [System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
                }






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 15 '18 at 21:30









                BenHBenH

                1412




                1412























                    0














                    I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.






                    share|improve this answer






























                      0














                      I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.






                      share|improve this answer




























                        0












                        0








                        0







                        I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.






                        share|improve this answer















                        I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Apr 26 '17 at 8:09

























                        answered Apr 24 '17 at 23:06









                        SamSam

                        9831931




                        9831931























                            0














                            Take the script from Judy Li’s answer and tweak it.



                            Option Explicit
                            Dim oShell, sWinDir
                            Set oShell = WScript.CreateObject("WScript.Shell")
                            sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
                            oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
                            Set oShell = Nothing
                            WScript.Quit


                            Save it on your desktop as a .vbs file
                            (e.g., SetDefaultProgams.vbs). 
                            Double clicking it will bring up the more familiar Set Default Programs
                            with the list on the left, like previous versions of Windows 10.



                            (Of course there are other ways to invoke a program / script. 
                            You could put it on your Start Menu, or run it through CMD or PowerShell.)



                            This script was tested by me on Windows version 10.0.16299.192.






                            share|improve this answer






























                              0














                              Take the script from Judy Li’s answer and tweak it.



                              Option Explicit
                              Dim oShell, sWinDir
                              Set oShell = WScript.CreateObject("WScript.Shell")
                              sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
                              oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
                              Set oShell = Nothing
                              WScript.Quit


                              Save it on your desktop as a .vbs file
                              (e.g., SetDefaultProgams.vbs). 
                              Double clicking it will bring up the more familiar Set Default Programs
                              with the list on the left, like previous versions of Windows 10.



                              (Of course there are other ways to invoke a program / script. 
                              You could put it on your Start Menu, or run it through CMD or PowerShell.)



                              This script was tested by me on Windows version 10.0.16299.192.






                              share|improve this answer




























                                0












                                0








                                0







                                Take the script from Judy Li’s answer and tweak it.



                                Option Explicit
                                Dim oShell, sWinDir
                                Set oShell = WScript.CreateObject("WScript.Shell")
                                sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
                                oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
                                Set oShell = Nothing
                                WScript.Quit


                                Save it on your desktop as a .vbs file
                                (e.g., SetDefaultProgams.vbs). 
                                Double clicking it will bring up the more familiar Set Default Programs
                                with the list on the left, like previous versions of Windows 10.



                                (Of course there are other ways to invoke a program / script. 
                                You could put it on your Start Menu, or run it through CMD or PowerShell.)



                                This script was tested by me on Windows version 10.0.16299.192.






                                share|improve this answer















                                Take the script from Judy Li’s answer and tweak it.



                                Option Explicit
                                Dim oShell, sWinDir
                                Set oShell = WScript.CreateObject("WScript.Shell")
                                sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
                                oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
                                Set oShell = Nothing
                                WScript.Quit


                                Save it on your desktop as a .vbs file
                                (e.g., SetDefaultProgams.vbs). 
                                Double clicking it will bring up the more familiar Set Default Programs
                                with the list on the left, like previous versions of Windows 10.



                                (Of course there are other ways to invoke a program / script. 
                                You could put it on your Start Menu, or run it through CMD or PowerShell.)



                                This script was tested by me on Windows version 10.0.16299.192.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Jan 15 '18 at 16:34









                                G-Man

                                5,627112358




                                5,627112358










                                answered Jan 15 '18 at 2:26









                                user862314user862314

                                1




                                1























                                    0














                                    I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.



                                    Set WshShell = WScript.CreateObject("WScript.Shell")
                                    WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
                                    WScript.Sleep 1200
                                    WshShell.SendKeys "{TAB}"
                                    WshShell.SendKeys "{TAB}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys " "
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys " "
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys " "
                                    WshShell.SendKeys "{DOWN}"
                                    WshShell.SendKeys " "
                                    WshShell.SendKeys "{TAB}"
                                    WshShell.SendKeys " "
                                    WScript.Quit





                                    share|improve this answer




























                                      0














                                      I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.



                                      Set WshShell = WScript.CreateObject("WScript.Shell")
                                      WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
                                      WScript.Sleep 1200
                                      WshShell.SendKeys "{TAB}"
                                      WshShell.SendKeys "{TAB}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys " "
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys " "
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys " "
                                      WshShell.SendKeys "{DOWN}"
                                      WshShell.SendKeys " "
                                      WshShell.SendKeys "{TAB}"
                                      WshShell.SendKeys " "
                                      WScript.Quit





                                      share|improve this answer


























                                        0












                                        0








                                        0







                                        I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.



                                        Set WshShell = WScript.CreateObject("WScript.Shell")
                                        WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
                                        WScript.Sleep 1200
                                        WshShell.SendKeys "{TAB}"
                                        WshShell.SendKeys "{TAB}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{TAB}"
                                        WshShell.SendKeys " "
                                        WScript.Quit





                                        share|improve this answer













                                        I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.



                                        Set WshShell = WScript.CreateObject("WScript.Shell")
                                        WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
                                        WScript.Sleep 1200
                                        WshShell.SendKeys "{TAB}"
                                        WshShell.SendKeys "{TAB}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{DOWN}"
                                        WshShell.SendKeys " "
                                        WshShell.SendKeys "{TAB}"
                                        WshShell.SendKeys " "
                                        WScript.Quit






                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Jan 10 at 17:21









                                        Brendan MurphyBrendan Murphy

                                        1




                                        1























                                            0














                                            To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.



                                            Launched SetDefaultBrowser.exe HKLM "Google Chrome" and it worked fine for me.






                                            share|improve this answer




























                                              0














                                              To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.



                                              Launched SetDefaultBrowser.exe HKLM "Google Chrome" and it worked fine for me.






                                              share|improve this answer


























                                                0












                                                0








                                                0







                                                To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.



                                                Launched SetDefaultBrowser.exe HKLM "Google Chrome" and it worked fine for me.






                                                share|improve this answer













                                                To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.



                                                Launched SetDefaultBrowser.exe HKLM "Google Chrome" and it worked fine for me.







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Jan 24 at 9:24









                                                AldisAldis

                                                1011




                                                1011























                                                    -2














                                                    On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug






                                                    share|improve this answer


























                                                    • What are the steps to set Chrome as a default browser instantly?

                                                      – alljamin
                                                      Feb 16 '17 at 23:22











                                                    • On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.

                                                      – alancussen
                                                      Feb 18 '17 at 0:39













                                                    • Add this to your answer.

                                                      – alljamin
                                                      Feb 18 '17 at 2:42






                                                    • 4





                                                      I think he/she was wanting to do this programmatically rather than manually.

                                                      – Sam
                                                      Apr 5 '17 at 23:43
















                                                    -2














                                                    On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug






                                                    share|improve this answer


























                                                    • What are the steps to set Chrome as a default browser instantly?

                                                      – alljamin
                                                      Feb 16 '17 at 23:22











                                                    • On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.

                                                      – alancussen
                                                      Feb 18 '17 at 0:39













                                                    • Add this to your answer.

                                                      – alljamin
                                                      Feb 18 '17 at 2:42






                                                    • 4





                                                      I think he/she was wanting to do this programmatically rather than manually.

                                                      – Sam
                                                      Apr 5 '17 at 23:43














                                                    -2












                                                    -2








                                                    -2







                                                    On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug






                                                    share|improve this answer















                                                    On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug







                                                    share|improve this answer














                                                    share|improve this answer



                                                    share|improve this answer








                                                    edited Feb 19 '17 at 18:15

























                                                    answered Feb 14 '17 at 21:32









                                                    alancussenalancussen

                                                    11




                                                    11













                                                    • What are the steps to set Chrome as a default browser instantly?

                                                      – alljamin
                                                      Feb 16 '17 at 23:22











                                                    • On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.

                                                      – alancussen
                                                      Feb 18 '17 at 0:39













                                                    • Add this to your answer.

                                                      – alljamin
                                                      Feb 18 '17 at 2:42






                                                    • 4





                                                      I think he/she was wanting to do this programmatically rather than manually.

                                                      – Sam
                                                      Apr 5 '17 at 23:43



















                                                    • What are the steps to set Chrome as a default browser instantly?

                                                      – alljamin
                                                      Feb 16 '17 at 23:22











                                                    • On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.

                                                      – alancussen
                                                      Feb 18 '17 at 0:39













                                                    • Add this to your answer.

                                                      – alljamin
                                                      Feb 18 '17 at 2:42






                                                    • 4





                                                      I think he/she was wanting to do this programmatically rather than manually.

                                                      – Sam
                                                      Apr 5 '17 at 23:43

















                                                    What are the steps to set Chrome as a default browser instantly?

                                                    – alljamin
                                                    Feb 16 '17 at 23:22





                                                    What are the steps to set Chrome as a default browser instantly?

                                                    – alljamin
                                                    Feb 16 '17 at 23:22













                                                    On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.

                                                    – alancussen
                                                    Feb 18 '17 at 0:39







                                                    On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.

                                                    – alancussen
                                                    Feb 18 '17 at 0:39















                                                    Add this to your answer.

                                                    – alljamin
                                                    Feb 18 '17 at 2:42





                                                    Add this to your answer.

                                                    – alljamin
                                                    Feb 18 '17 at 2:42




                                                    4




                                                    4





                                                    I think he/she was wanting to do this programmatically rather than manually.

                                                    – Sam
                                                    Apr 5 '17 at 23:43





                                                    I think he/she was wanting to do this programmatically rather than manually.

                                                    – Sam
                                                    Apr 5 '17 at 23:43


















                                                    draft saved

                                                    draft discarded




















































                                                    Thanks for contributing an answer to Super User!


                                                    • Please be sure to answer the question. Provide details and share your research!

                                                    But avoid



                                                    • Asking for help, clarification, or responding to other answers.

                                                    • Making statements based on opinion; back them up with references or personal experience.


                                                    To learn more, see our tips on writing great answers.




                                                    draft saved


                                                    draft discarded














                                                    StackExchange.ready(
                                                    function () {
                                                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1069346%2fhow-to-automate-setting-chrome-as-default-browser-in-windows-10%23new-answer', 'question_page');
                                                    }
                                                    );

                                                    Post as a guest















                                                    Required, but never shown





















































                                                    Required, but never shown














                                                    Required, but never shown












                                                    Required, but never shown







                                                    Required, but never shown

































                                                    Required, but never shown














                                                    Required, but never shown












                                                    Required, but never shown







                                                    Required, but never shown







                                                    Popular posts from this blog

                                                    If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                                                    Alcedinidae

                                                    Can an atomic nucleus contain both particles and antiparticles? [duplicate]