Comment automate setting Chrome as par défaut browser in Windows 10

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment automate setting Chrome as par défaut browser in Windows 10

Message par ForumBot »

J'ai essayé 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.

Toute aide serait appréciée. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment automate setting Chrome as par défaut browser in Windows 10

Message par ForumBot »

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

```
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?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](http://ccmexec.com/2015/09/making-ie-the-default-browser-in-windows-10-during-osd)
Répondre

Revenir à « Personnalisation Windows »