cmd command to set Chrome as default browser Windows 10?

46,999

Solution 1

Powershell commands

Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice' -Name ProgId -Value 'ChromeHTML'
Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice' -Name ProgId -Value 'ChromeHTML'

Solution 2

There is no simple way. Here is the official guidance - it includes creating pre-configuration XML and applying group policies: https://support.google.com/chrome/a/answer/7009292?hl=en

Also, a developer created a small helper to achieve it: https://github.com/sampalmer/set-default-browser

Share:
46,999

Related videos on Youtube

Refael
Author by

Refael

Updated on September 18, 2022

Comments

  • Refael
    Refael over 1 year

    This command no longer works:

    chrome.exe --make-default-browser

    It probably only fit to win7

    • UkFLSUI
      UkFLSUI almost 7 years
      Is it need to be done using command or you need to make chrome the default browser?
    • vembutech
      vembutech almost 7 years
      Your machine is in domain or work group?
  • w32sh
    w32sh about 5 years
    This won't work on Windows 10. As hash validation is in place, writing to UserChoice directly causes An App Default was Reset issue in Windows 10.
  • zoechi
    zoechi almost 5 years
    Chrome still shows "Set as default" button on start.